File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -21,10 +21,10 @@ jobs:
21
21
- name : Publish to GitHub Packages
22
22
run : |
23
23
dotnet nuget add source --username USERNAME --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/autofac/index.json"
24
- dotnet nuget push ./artifacts/packages/*.nupkg --source github --api-key ${{ secrets.GITHUB_TOKEN }}
25
- dotnet nuget push ./artifacts/packages/*.snupkg --source github --api-key ${{ secrets.GITHUB_TOKEN }}
24
+ dotnet nuget push ./artifacts/packages/*.nupkg --skip-duplicate -- source github --api-key ${{ secrets.GITHUB_TOKEN }}
25
+ dotnet nuget push ./artifacts/packages/*.snupkg --skip-duplicate -- source github --api-key ${{ secrets.GITHUB_TOKEN }}
26
26
- name : Publish to NuGet
27
27
if : ${{ startsWith(github.ref, 'refs/tags/v') }}
28
28
run : |
29
- dotnet nuget push ./artifacts/packages/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }}
30
- dotnet nuget push ./artifacts/packages/*.snupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }}
29
+ dotnet nuget push ./artifacts/packages/*.nupkg --skip-duplicate -- source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }}
30
+ dotnet nuget push ./artifacts/packages/*.snupkg --skip-duplicate -- source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }}
You can’t perform that action at this time.
0 commit comments