File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 88 - master
99env :
1010 APP_NAME : HungarianAlgorithm
11- VERSION : 2.3.4
12- NUGET_HOST : https://www .nuget.org
11+ VERSION : 0.0.1
12+ NUGET_HOST : https://api .nuget.org/v3/index.json
1313 NUGET_APIKEY : ${{ secrets.NUGET_APIKEY }}
1414jobs :
1515 build-and-deploy :
5252 if : github.ref == 'refs/heads/master'
5353 shell : pwsh
5454 run : |
55- dotnet nuget push nupkgs/$env:APP_NAME"."$env:VERSION.nupkg -s $env:NUGET_HOST -k $env:NUGET_APIKEY
56- dotnet nuget push nupkgs/$env:APP_NAME"."$env:VERSION.snupkg -s $env:NUGET_HOST -k $env:NUGET_APIKEY
55+ dotnet nuget push "nupkgs/*.nupkg" -s $env:NUGET_HOST -k $env:NUGET_APIKEY --skip-duplicate
56+
57+ if ($LastExitCode -ne 0)
58+ {
59+ throw "Publish failed";
60+ };
5761
5862 - name : GitHub Release
5963 if : github.ref == 'refs/heads/master'
You can’t perform that action at this time.
0 commit comments