Avoid failure of pushing to github
This commit is contained in:
parent
0d26efd07e
commit
7fb38e0e66
3
.github/workflows/Nuget-publishing.yml
vendored
3
.github/workflows/Nuget-publishing.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user