From 49ea2448d2b23050ed0719ff1b7cade8a91a228c Mon Sep 17 00:00:00 2001 From: Claudio Benghi Date: Mon, 2 Oct 2023 01:17:51 +0200 Subject: [PATCH] Limiting publication to the CBenghi onwership. This is because the secret publication key is only available there. --- .github/workflows/build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index af59484..a8c0104 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -32,5 +32,5 @@ jobs: - name: Test run: dotnet test --no-build --verbosity normal - name: Publish - if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request' ## only if main and not a PR + if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request' && github.repository_owner == 'CBenghi' ## only if main and not a PR run: dotnet nuget push **\*.nupkg -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_API_KEY}} --skip-duplicate --force-english-output