Skip to content

Commit 87352ea

Browse files
committed
Deploy only on push to main
1 parent bdd5773 commit 87352ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
cd docs && make html
4646
4747
- name: Deploy
48-
if: github.ref == 'refs/heads/main'
48+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
4949
uses: JamesIves/github-pages-deploy-action@v4.7.3
5050
with:
5151
branch: gh-pages # The branch the action should deploy to.

0 commit comments

Comments
 (0)