From c2d17cce6378c47c776a1181289e94be8eec3a5a Mon Sep 17 00:00:00 2001 From: debeshmandal <32571340+debeshmandal@users.noreply.github.com> Date: Wed, 21 Oct 2020 11:42:05 +0100 Subject: [PATCH] ensuring deploy only happens on master --- .github/workflows/build-documentation.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build-documentation.yml b/.github/workflows/build-documentation.yml index cc45178..1cd12fd 100644 --- a/.github/workflows/build-documentation.yml +++ b/.github/workflows/build-documentation.yml @@ -26,6 +26,7 @@ jobs: make -C docs/ html touch docs/_build/html/.nojekyll - name: Deploy 🚀 + if: github.ref == "refs/heads/master" uses: JamesIves/github-pages-deploy-action@3.6.2 with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}