From 9f92c888780cca0c69b64fa0048ff0b1c2b6b5f5 Mon Sep 17 00:00:00 2001 From: jinningwang Date: Sat, 30 Nov 2024 23:07:17 -0500 Subject: [PATCH] Ensure action build only runs on master branch --- .github/workflows/build.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e0f7eca..29f21c8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,6 +21,7 @@ concurrency: jobs: build: + if: github.ref == 'refs/heads/master' runs-on: ubuntu-latest steps: - name: Checkout @@ -66,6 +67,7 @@ jobs: uses: actions/upload-pages-artifact@v3 deploy: + if: github.ref == 'refs/heads/master' environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }}