File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,17 +27,15 @@ jobs:
2727 shell : pwsh
2828 run : ./build.ps1
2929
30- - name : Publish to nuget
31- if : ${{ github.event_name == 'release' }}
32- shell : pwsh
33- run : |
34- $pck = "$(Get-ChildItem .\publish\packages\*.nupkg | foreach {$_.FullName } | select -First 1)"
35- Write-Host "publishing $pck"
36- dotnet nuget push "$pck" --api-key "${{ secrets.NUGET_API_KEY }}" --source "https://api.nuget.org/v3/index.json"
37-
3830 - name : Upload Build Artifacts
3931 uses : actions/upload-artifact@v4
4032 with :
4133 name : dotnet-tool-pacakge
4234 path : publish/packages/*.nupkg
43- retention-days : 1
35+ retention-days : 1
36+
37+ - name : Publish to nuget
38+ if : ${{ github.event_name == 'release' }}
39+ shell : pwsh
40+ run : |
41+ dotnet nuget push 'publish/packages/*.nupkg' --api-key "${{ secrets.NUGET_API_KEY }}" --source "https://api.nuget.org/v3/index.json" --skip-duplicate
You can’t perform that action at this time.
0 commit comments