From 20c044d6d6d0b1cf1b43e9aa13a598210dc38488 Mon Sep 17 00:00:00 2001 From: Shihab S <162436767+shihab-dls@users.noreply.github.com> Date: Thu, 16 May 2024 19:27:23 +0100 Subject: [PATCH] Changing GH pages push to only master and tags --- .github/workflows/_docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/_docs.yml b/.github/workflows/_docs.yml index 9f6699b..d287b81 100644 --- a/.github/workflows/_docs.yml +++ b/.github/workflows/_docs.yml @@ -44,7 +44,7 @@ jobs: run: python .github/pages/make_switcher.py --add $DOCS_VERSION ${{ github.repository }} .github/pages/switcher.json - name: Publish Docs to gh-pages - if: github.ref_type == 'tag' || github.ref_name == 'docs_and_docker' + if: github.ref_type == 'tag' || github.ref_name == 'master' # We pin to the SHA, not the tag, for security reasons. # https://docs.github.com/en/actions/learn-github-actions/security-hardening-for-github-actions#using-third-party-actions uses: peaceiris/actions-gh-pages@373f7f263a76c20808c831209c920827a82a2847 # v3.9.3