Skip to content

Commit 9941d97

Browse files
Add --skip-duplicate flag to NuGet push (#421)
This prevents the pipeline from failing when attempting to republish an already published package version.
1 parent 9d23a5a commit 9941d97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/publish_nuget.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
run: dotnet pack -c Release -o ./output
3131

3232
- name: Push Packages
33-
run: dotnet nuget push "output/*.nupkg" -k ${{ secrets.NUGET_KEY }} -s https://api.nuget.org/v3/index.json
33+
run: dotnet nuget push "output/*.nupkg" -k ${{ secrets.NUGET_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate
3434

3535
- name: release
3636
uses: actions/create-release@v1

0 commit comments

Comments
 (0)