Avoid failure of pushing to github

This commit is contained in:
mio 2024-09-21 20:48:13 +08:00
parent 0d26efd07e
commit 7fb38e0e66
No known key found for this signature in database
GPG Key ID: DFF27E34A47CB873

View File

@ -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