Skip to content

Commit 2b156d8

Browse files
committed
fix push nuget step
1 parent 2ca5ea6 commit 2b156d8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,9 @@ jobs:
5050

5151
- name: Push NuGet
5252
if: |
53-
startsWith(github.event.ref, 'refs/tags/')
54-
|| endsWith(github.event.ref, '/master')
53+
github.event.action == 'published'
5554
shell: pwsh
56-
run: dotnet nuget push **/*.nupkg --source $Env:SOURCE --api-key $Env:TOKEN
55+
run: dotnet nuget push **/*.nupkg --source $Env:SOURCE --api-key $Env:TOKEN --skip-duplicate
5756
env:
5857
SOURCE: 'https://api.nuget.org/v3/index.json'
5958
TOKEN: ${{ secrets.NUGET_API_KEY }}

0 commit comments

Comments
 (0)