Skip to content

Commit dd0e06b

Browse files
authored
ci: add skip-duplicate for publish nuget so that if version wasn't change we don't publish and don't fail the pipeline (#73)
1 parent 973de4e commit dd0e06b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/publish-to-nuget.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ jobs:
3434
run: dotnet pack --configuration Release --no-build --output ./nupkg
3535

3636
- name: Publish NuGet Package
37-
run: dotnet nuget push ./nupkg/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
37+
run: dotnet nuget push ./nupkg/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
3838
env:
3939
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}

0 commit comments

Comments
 (0)