Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
Added  --skip-duplicate on nuget push.
  • Loading branch information
mattjcowan authored Jan 28, 2025
1 parent ecb372e commit 1c2c5a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
path: nupkgs

- name: Push
run: dotnet nuget push nupkgs/${PACKAGE_ID}.${VERSION_NUMBER}.nupkg
run: dotnet nuget push nupkgs/${PACKAGE_ID}.${VERSION_NUMBER}.nupkg --skip-duplicate
env:
PACKAGE_ID: "MJCZone.DapperMatic"

Expand Down Expand Up @@ -105,7 +105,7 @@ jobs:
path: nupkgs

- name: Push
run: dotnet nuget push nupkgs/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
run: dotnet nuget push nupkgs/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
env:
NUGET_API_KEY: ${{secrets.NUGET_API_KEY}} # nuget.org API key stored in GitHub organization secrets

Expand Down

0 comments on commit 1c2c5a0

Please sign in to comment.