Skip to content

Commit 3a3ec50

Browse files
committed
(docs) Do not push docs on non-main branch
Still generates docs because this is (or, will be) an alternative way to test stuff. Vibe coded so don't ask. TBH I don't know much about Github Workflows so there will be tinkering, vibe coded or not.
1 parent 9299b2f commit 3a3ec50

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/sphinx-gh-pages.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ jobs:
4545
path: './docs/_build/html'
4646

4747
deploy:
48+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
4849
environment:
4950
name: github-pages
5051
url: ${{ steps.deployment.outputs.page_url }}

0 commit comments

Comments
 (0)