File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -26,12 +26,13 @@ jobs:
26
26
os_name : windows
27
27
28
28
steps :
29
-
30
29
- name : Checkout code
31
30
uses : actions/checkout@v2
32
31
33
- - name : Setup .NET SDK
34
- uses : actions/setup-dotnet@v1
32
+ - name : Setup NuGet
33
+ uses : nuget/setup-nuget@v1
34
+ with :
35
+ nuget-version : ' 5.11.0'
35
36
36
37
# Arcade only allows the revision to contain up to two characters, and GitHub Actions does not roll-over
37
38
# build numbers every day like Azure DevOps does. To balance these two requirements, set the official
88
89
path : ./artifacts/TestResults/Release
89
90
90
91
- 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
92
92
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' }}
93
+ 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
93
94
94
95
- 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
96
96
if : ${{ github.repository_owner == 'aspnet-contrib' && startsWith(github.ref, 'refs/tags/') && runner.os == 'Windows' }}
97
+ run : nuget push "artifacts\packages\Release\Shipping\*.nupkg" -ApiKey ${{ secrets.NUGET_API_KEY }} -SkipDuplicate -Source https://api.nuget.org/v3/index.json
You can’t perform that action at this time.
0 commit comments