From 7fb38e0e6684a7596ba76d00ced441663d6b6319 Mon Sep 17 00:00:00 2001 From: mio Date: Sat, 21 Sep 2024 20:48:13 +0800 Subject: [PATCH] Avoid failure of pushing to github --- .github/workflows/Nuget-publishing.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/Nuget-publishing.yml b/.github/workflows/Nuget-publishing.yml index 3f8b8647..8d997938 100644 --- a/.github/workflows/Nuget-publishing.yml +++ b/.github/workflows/Nuget-publishing.yml @@ -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