From d4e01c6579a07908d95b2e30b083add827490a97 Mon Sep 17 00:00:00 2001 From: Kathryn Baldauf Date: Fri, 6 Jun 2025 21:49:49 -0700 Subject: [PATCH] Only allow publishing docs on release branch or tags (#30) This removes the ability to deploy docs on the main branch and instead only allows docs deployment on either a tag or a release branch. Docs are also built (but not deployed) in the common job run by the build and release pipelines. Signed-off-by: Kathryn Baldauf --- .github/workflows/docs-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docs-release.yml b/.github/workflows/docs-release.yml index 5563762e..e2736042 100644 --- a/.github/workflows/docs-release.yml +++ b/.github/workflows/docs-release.yml @@ -7,7 +7,7 @@ on: jobs: checkBranch: runs-on: ubuntu-latest - if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release') + if: startsWith(github.ref, 'refs/tags') || startsWith(github.ref, 'refs/heads/release') steps: - name: Branch validation run: echo "Branch ${{ github.ref_name }} is allowed"