There was an error while loading. Please reload this page.
1 parent 6aacc91 commit 0915341Copy full SHA for 0915341
1 file changed
.github/workflows/nuget.yml
@@ -24,7 +24,10 @@ jobs:
24
- name: List nupkg
25
run: dir .\nupkgs
26
- name: Push NuGet package
27
+ if: ${{ secrets.NUGET_API_KEY }}
28
+ env:
29
+ NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
30
run: |
31
$version = "${{ github.ref_name }}" -replace '^v', ''
32
$pkg = Get-ChildItem -Path ./nupkgs -Filter "*$version.nupkg" | Select-Object -First 1
- dotnet nuget push $pkg.FullName --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
33
+ dotnet nuget push $pkg.FullName --api-key $env:NUGET_API_KEY --source https://api.nuget.org/v3/index.json --skip-duplicate
0 commit comments