Skip to content

Commit 4290993

Browse files
set branch to master for publish
1 parent e0a0101 commit 4290993

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/publish.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: documentation
22

3-
on: [push, pull_request, workflow_dispatch]
3+
on:
4+
push:
5+
branches: [master] # branch to trigger deployment
46

57
permissions:
68
contents: write
@@ -20,7 +22,7 @@ jobs:
2022
# sphinx-build doc _build
2123
- name: Deploy to GitHub Pages
2224
uses: peaceiris/actions-gh-pages@v3
23-
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
25+
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
2426
with:
2527
publish_branch: gh-pages
2628
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)