From 34bf19717a85f3b45bd09254138b4cd169faff56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20H=C3=A4fele?= Date: Fri, 29 Nov 2024 22:58:54 +0100 Subject: [PATCH] In publish.yml only run nuget-push on the main branch --- .github/workflows/publish.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 30b991e..29fa912 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -101,6 +101,7 @@ jobs: # Push nuget package to nuget.org - name: nuget push + if: github.ref == 'refs/heads/main' run: dotnet nuget push *.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_API_KEY }} --skip-duplicate env: Configuration: ${{ matrix.configuration }}