From cb7cec470a36b08d392e9ddf82b88d8398d08871 Mon Sep 17 00:00:00 2001 From: richarddushime Date: Fri, 14 Mar 2025 17:57:54 +0100 Subject: [PATCH] Deploy on: main branch pushes OR tags OR manual trigger --- .github/workflows/docs_build_and _deploy.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docs_build_and _deploy.yml b/.github/workflows/docs_build_and _deploy.yml index 528408c..f24a625 100644 --- a/.github/workflows/docs_build_and _deploy.yml +++ b/.github/workflows/docs_build_and _deploy.yml @@ -37,7 +37,8 @@ jobs: needs: build_sphinx_docs permissions: contents: write - if: (github.event_name == 'push' && github.ref_type == 'tag') || github.event_name == 'workflow_dispatch' + # Deploy on: main branch pushes OR tags OR manual trigger + if: (github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref_type == 'tag')) || github.event_name == 'workflow_dispatch' runs-on: ubuntu-latest steps: - uses: neuroinformatics-unit/actions/deploy_sphinx_docs@main