We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40a2351 commit 4ddaf24Copy full SHA for 4ddaf24
1 file changed
.github/workflows/build-and-publish.yml
@@ -142,7 +142,14 @@ jobs:
142
- name: Publish to NuGet.org
143
shell: pwsh
144
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
+ $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
153
154
- name: Clean up certificate
155
if: always()
0 commit comments