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