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