Skip to content

Commit 15d6850

Browse files
Add the skip-duplicated option when publishing on NuGet.
1 parent 42e0068 commit 15d6850

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/github-actions-release.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,8 @@ jobs:
3434
--output ./artifacts
3535
3636
- name: Publish the package to nuget.org
37-
run: dotnet nuget push "./artifacts/*.nupkg" --api-key "${{ secrets.NUGET_APIKEY }}" --source https://api.nuget.org/v3/index.json
37+
run: |
38+
dotnet nuget push "./artifacts/*.nupkg" \
39+
--api-key "${{ secrets.NUGET_APIKEY }}" \
40+
--source https://api.nuget.org/v3/index.json \
41+
--skip-duplicate

0 commit comments

Comments
 (0)