Skip to content

Commit 1322cfc

Browse files
Massimiliano Pippimasci
Massimiliano Pippi
authored andcommitted
publish docs only when pr is merged
1 parent 906a0bf commit 1322cfc

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/docs.yaml

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

33
on:
4-
push:
5-
branches:
6-
- master
74
pull_request:
85
paths:
96
- 'docs/**'
@@ -57,7 +54,8 @@ jobs:
5754
run: mkdocs build -s
5855

5956
- name: Deploy
60-
if:
57+
# publish docs only when PR is merged
58+
if: github.event.pull_request.merged == 'true'
6159
uses: peaceiris/actions-gh-pages@v3
6260
with:
6361
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)