File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -142,7 +142,14 @@ jobs:
142142 - name : Publish to NuGet.org
143143 shell : pwsh
144144 run : |
145- dotnet nuget push "${{ github.workspace }}/nupkg/*.nupkg" --api-key ${{ steps.login.outputs.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
145+ $packages = Get-ChildItem -Path "${{ github.workspace }}/nupkg" -Filter *.nupkg
146+ foreach ($package in $packages) {
147+ Write-Host "Going to publish $($package.Name)"
148+ dotnet nuget push $package.FullName --api-key ${{ steps.nuget-login.outputs.nuget-api-key }} --source https://api.nuget.org/v3/index.json
149+ if ($LASTEXITCODE -ne 0) {
150+ throw "Failed to publish $($package.Name)"
151+ }
152+ }
146153
147154 - name : Clean up certificate
148155 if : always()
You can’t perform that action at this time.
0 commit comments