From 9713ee56ce33c1c0e132c249809b11d72ea2e769 Mon Sep 17 00:00:00 2001 From: Joshua Harms Date: Thu, 16 May 2024 17:11:59 -0500 Subject: [PATCH] Only publish prerelease packages if on the master branch --- .github/workflows/build-and-test.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index d781900a..c3223e97 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -129,6 +129,8 @@ jobs: runs-on: ubuntu-22.04 needs: test environment: "Prerelease deployment environment" + # Only publish prerelease packages on the master branch + if: ${{ github.ref_name == 'master' }} steps: - name: Setup dotnet