Skip to content

Commit 4667bd8

Browse files
committed
Push to CI feed (#1585)
- Need to use 5.10.0 per GitTools/GitVersion#2838 - 6.x will remove NuGetSemVer2
1 parent 1184c08 commit 4667bd8

File tree

1 file changed

+27
-4
lines changed

1 file changed

+27
-4
lines changed

.github/workflows/package.yml

+27-4
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,11 @@ jobs:
3030
- name: Install .NET Core from global.json
3131
uses: actions/setup-dotnet@v3
3232
- name: Install GitVersion
33-
uses: gittools/actions/gitversion/setup@v0
33+
uses: gittools/actions/gitversion/setup@v0.9.15
3434
with:
35-
versionSpec: '6.x'
36-
includePrerelease: true
35+
# v5.10.0 of GitVersion has a fix for incorrect versions when building tags. See https://github.com/GitTools/GitVersion/issues/2838
36+
# It appears that the fix then had a regression in a later version, so locking in 5.10.0. See https://github.com/GitTools/GitVersion/issues/3351#issuecomment-1403657689
37+
versionSpec: '5.10.0'
3738
- name: Determine Version
3839
uses: gittools/actions/gitversion/execute@v0
3940
with:
@@ -150,7 +151,29 @@ jobs:
150151
name: Signed
151152
path: |
152153
${{ github.workspace }}\unsigned\*.snupkg
153-
${{ github.workspace }}\unsigned\raw\*.nupkg
154+
${{ github.workspace }}\unsigned\raw\*.nupkg
155+
CI:
156+
name: "Push to CI feed"
157+
needs: [sign]
158+
runs-on: ubuntu-latest
159+
steps:
160+
- name: Install .NET Core
161+
uses: actions/setup-dotnet@v3
162+
- name: Download Packages
163+
uses: actions/download-artifact@v3
164+
with:
165+
name: Signed
166+
path: '${{ github.workspace }}/packages'
167+
- name: Push to CI feed
168+
env:
169+
SLEET_FEED_TYPE: azure
170+
SLEET_FEED_CONTAINER: feed
171+
SLEET_FEED_CONNECTIONSTRING: ${{secrets.SLEET_CONNECTIONSTRING}}
172+
run: |
173+
cd $GITHUB_WORKSPACE/packages
174+
dotnet tool install -g sleet
175+
sleet push . --skip-existing
176+
154177
releaseInfo:
155178
name: Release Info
156179
runs-on: windows-latest

0 commit comments

Comments
 (0)