Skip to content
This repository was archived by the owner on Apr 24, 2025. It is now read-only.

Commit cd68f74

Browse files
committed
ci: skip duplicates package versions on release
[ci skip]
1 parent 5894e19 commit cd68f74

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ jobs:
8282
- name: Configure GitHub NuGet registry
8383
run: nuget sources add -name github -source https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json -username ${{ github.repository_owner }} -password ${{ secrets.GITHUB_TOKEN }}
8484
- name: Push to GitHub package registry
85-
run: nuget push packages\*.nupkg -ApiKey ${{ secrets.GITHUB_TOKEN }} -Source github
85+
run: nuget push packages\*.nupkg -ApiKey ${{ secrets.GITHUB_TOKEN }} -Source github -SkipDuplicate
8686
- name: Push to NuGet.org
87-
run: nuget push packages\*.nupkg -ApiKey ${{ secrets.NUGET_API_KEY }} -Source https://api.nuget.org/v3/index.json
87+
run: nuget push packages\*.nupkg -ApiKey ${{ secrets.NUGET_API_KEY }} -Source https://api.nuget.org/v3/index.json -SkipDuplicate
8888
- name: Create GitHub release
8989
uses: softprops/action-gh-release@v1
9090
env:

0 commit comments

Comments
 (0)