Skip to content

Commit 82564b4

Browse files
authored
Push to CI feed (#1585)
- Need to use 5.10.0 per GitTools/GitVersion#2838 - 6.x will remove NuGetSemVer2
1 parent 81ffb7c commit 82564b4

File tree

1 file changed

+27
-4
lines changed

1 file changed

+27
-4
lines changed

.github/workflows/package.yml

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,11 @@ jobs:
3131
- name: Install .NET Core from global.json
3232
uses: actions/setup-dotnet@v3
3333
- name: Install GitVersion
34-
uses: gittools/actions/gitversion/setup@v0
34+
uses: gittools/actions/gitversion/setup@v0.9.15
3535
with:
36-
versionSpec: '6.x'
37-
includePrerelease: true
36+
# v5.10.0 of GitVersion has a fix for incorrect versions when building tags. See https://github.com/GitTools/GitVersion/issues/2838
37+
# 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
38+
versionSpec: '5.10.0'
3839
- name: Determine Version
3940
uses: gittools/actions/gitversion/execute@v0
4041
with:
@@ -151,7 +152,29 @@ jobs:
151152
name: Signed
152153
path: |
153154
${{ github.workspace }}\unsigned\*.snupkg
154-
${{ github.workspace }}\unsigned\raw\*.nupkg
155+
${{ github.workspace }}\unsigned\raw\*.nupkg
156+
CI:
157+
name: "Push to CI feed"
158+
needs: [sign]
159+
runs-on: ubuntu-latest
160+
steps:
161+
- name: Install .NET Core
162+
uses: actions/setup-dotnet@v3
163+
- name: Download Packages
164+
uses: actions/download-artifact@v3
165+
with:
166+
name: Signed
167+
path: '${{ github.workspace }}/packages'
168+
- name: Push to CI feed
169+
env:
170+
SLEET_FEED_TYPE: azure
171+
SLEET_FEED_CONTAINER: feed
172+
SLEET_FEED_CONNECTIONSTRING: ${{secrets.SLEET_CONNECTIONSTRING}}
173+
run: |
174+
cd $GITHUB_WORKSPACE/packages
175+
dotnet tool install -g sleet
176+
sleet push . --skip-existing
177+
155178
releaseInfo:
156179
name: Release Info
157180
runs-on: windows-latest

0 commit comments

Comments
 (0)