Skip to content

Commit 103cfcf

Browse files
authored
Allow PR checks also
1 parent 6030dad commit 103cfcf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/publish-docs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ name: Publish docs
33
on:
44
push:
55
branches: [ master ]
6+
pull_request:
7+
types: [opened, synchronize] # This will trigger the workflow only when a PR is opened or updated with new commits
68

79
jobs:
810
build:
@@ -24,6 +26,7 @@ jobs:
2426
run: mkdocs build --verbose --clean --strict
2527

2628
- name: Deploy
29+
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
2730
uses: peaceiris/actions-gh-pages@v3
2831
with:
2932
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)