Skip to content

Commit

Permalink
OPL-12294: Prevent continuing nuget pushing when any of the pushes fa…
Browse files Browse the repository at this point in the history
…ils. (#12)
  • Loading branch information
jakubsemerak committed Mar 6, 2024
1 parent 6334ac7 commit 933997f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ jobs:
# If you retry a failed workflow, already published packages will be skipped without error.
- name: Publish NuGet package
run: |
set -e
foreach($file in (Get-ChildItem "${{ env.NuGetDirectory }}" -Recurse -Include *.nupkg)) {
dotnet nuget push $file --api-key "${{ secrets.NUGET_APIKEY }}" --source https://api.nuget.org/v3/index.json --skip-duplicate
}

0 comments on commit 933997f

Please sign in to comment.