Skip to content

Commit 8b9b03d

Browse files
committed
Use NuGet.exe instead of dotnet nuget
1 parent bfaaecc commit 8b9b03d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,13 @@ jobs:
2525
os_name: windows
2626

2727
steps:
28-
2928
- name: Checkout code
3029
uses: actions/checkout@v2
3130

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

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

8990
- name: Push NuGet packages to aspnet-contrib MyGet
90-
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
9191
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' }}
92+
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
9293

9394
- name: Push NuGet packages to NuGet.org
94-
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
9595
if: ${{ github.repository_owner == 'aspnet-contrib' && startsWith(github.ref, 'refs/tags/') && runner.os == 'Windows' }}
96+
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)