Skip to content

Commit

Permalink
Avoid failure of pushing to github
Browse files Browse the repository at this point in the history
  • Loading branch information
wtdcode committed Sep 21, 2024
1 parent 0d26efd commit 7fb38e0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/Nuget-publishing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -428,10 +428,13 @@ jobs:
with:
path: ${{ github.workspace }}/bindings/dotnet/UnicornEngine/bin/Release/UnicornEngine.Unicorn.*.nupkg

# We often exceed limit so just release on tags
- name: 📦 Publish to Github Packages
if: startsWith(github.ref, 'refs/tags')
working-directory: bindings/dotnet/UnicornEngine
run: dotnet nuget push "bin/Release/UnicornEngine.Unicorn.*.nupkg" --source "github" --api-key "${{ secrets.GHPR_TOKEN }}"

# Nuget is more tolerate so let's release every commit
- name: 📦 Publish Nuget package
working-directory: bindings/dotnet/UnicornEngine
run: dotnet nuget push "bin/Release/UnicornEngine.Unicorn.*.nupkg" -k "$NUGET_AUTH_TOKEN" -s https://api.nuget.org/v3/index.json
Expand Down

0 comments on commit 7fb38e0

Please sign in to comment.