diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a9b566c..e5df635 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -140,4 +140,5 @@ jobs: files: Raylib-cs/bin/Release/Raylib-cs.${{steps.get-nuget-version.outputs.info}}.nupkg - name: Publish to NuGet - run: dotnet nuget push Raylib-cs/bin/Release/Raylib-cs.${{steps.get-nuget-version.outputs.info}}.nupkg -k $${{secrets.NUGET_API_KEY}} + if: startsWith(github.ref, 'refs/tags/') + run: dotnet nuget push Raylib-cs/bin/Release/Raylib-cs.${{steps.get-nuget-version.outputs.info}}.nupkg --api-key ${{secrets.NUGET_API_KEY}}