Skip to content

Commit 65c74cf

Browse files
Update build workflow
Update the build workflow to match the current version in the dev branch.
1 parent 3b91e88 commit 65c74cf

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,10 @@ jobs:
3030
- name: Checkout code
3131
uses: actions/checkout@v2
3232

33-
- name: Setup .NET Core SDK
34-
uses: actions/setup-dotnet@v1
33+
- name: Setup NuGet
34+
uses: nuget/setup-nuget@v1
35+
with:
36+
nuget-version: '5.11.0'
3537

3638
# Arcade only allows the revision to contain up to two characters, and GitHub Actions does not roll-over
3739
# build numbers every day like Azure DevOps does. To balance these two requirements, set the official
@@ -88,9 +90,9 @@ jobs:
8890
path: ./artifacts/TestResults/Release
8991

9092
- name: Push NuGet packages to aspnet-contrib MyGet
91-
run: dotnet nuget push "artifacts\packages\Release\Shipping\*.nupkg" --api-key ${{ secrets.MYGET_API_KEY }} --skip-duplicate --source https://www.myget.org/F/aspnet-contrib/api/v3/index.json
9293
if: ${{ github.repository_owner == 'aspnet-contrib' && (github.ref == 'refs/heads/dev' || startsWith(github.ref, 'refs/heads/rel/') || startsWith(github.ref, 'refs/tags/')) && runner.os == 'Windows' }}
94+
run: nuget push "artifacts\packages\Release\Shipping\*.nupkg" -ApiKey ${{ secrets.MYGET_API_KEY }} -SkipDuplicate -Source https://www.myget.org/F/aspnet-contrib/api/v3/index.json
9395

9496
- name: Push NuGet packages to NuGet.org
95-
run: dotnet nuget push "artifacts\packages\Release\Shipping\*.nupkg" --api-key ${{ secrets.NUGET_API_KEY }} --skip-duplicate --source https://api.nuget.org/v3/index.json
9697
if: ${{ github.repository_owner == 'aspnet-contrib' && startsWith(github.ref, 'refs/tags/') && runner.os == 'Windows' }}
98+
run: nuget push "artifacts\packages\Release\Shipping\*.nupkg" -ApiKey ${{ secrets.NUGET_API_KEY }} -SkipDuplicate -Source https://api.nuget.org/v3/index.json

0 commit comments

Comments
 (0)