Skip to content

Commit 873a440

Browse files
committed
Testing 1
1 parent b1e3983 commit 873a440

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/build-and-deploy.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ on:
88
- master
99
env:
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 }}
1414
jobs:
1515
build-and-deploy:
@@ -52,8 +52,12 @@ jobs:
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'

0 commit comments

Comments
 (0)