Skip to content

Commit 06396ad

Browse files
Deploy on: main branch pushes OR tags OR manual trigger (#140)
1 parent 1683b7c commit 06396ad

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/docs_build_and _deploy.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ jobs:
3737
needs: build_sphinx_docs
3838
permissions:
3939
contents: write
40-
if: (github.event_name == 'push' && github.ref_type == 'tag') || github.event_name == 'workflow_dispatch'
40+
# Deploy on: main branch pushes OR tags OR manual trigger
41+
if: (github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref_type == 'tag')) || github.event_name == 'workflow_dispatch'
4142
runs-on: ubuntu-latest
4243
steps:
4344
- uses: neuroinformatics-unit/actions/deploy_sphinx_docs@main

0 commit comments

Comments
 (0)