From 65d9150ec44463abde32ac5c36e4604eb09fcd88 Mon Sep 17 00:00:00 2001 From: Ben Parsons <9ParsonsB@users.noreply.github.com> Date: Sat, 3 Sep 2022 23:48:11 +1000 Subject: [PATCH] Update GitHub Actions (#126) --- .github/workflows/build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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}}