We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b70681 commit 2a0db5dCopy full SHA for 2a0db5d
.github/workflows/cd-docs.yml
@@ -2,8 +2,7 @@ name: deploy-docs
2
on:
3
workflow_dispatch:
4
push:
5
- branches:
6
- - master
+ pull_request
7
permissions:
8
contents: write
9
jobs:
@@ -17,6 +16,7 @@ jobs:
17
16
run: |
18
git config user.name github-actions[bot]
19
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
+ if: (github.event_name != 'pull_request')
20
21
- name: Set up Python 3.10
22
uses: actions/setup-python@v5
@@ -42,3 +42,8 @@ jobs:
42
43
- name: Deploy to GitHub Pages
44
run: mkdocs gh-deploy --force
45
46
+
47
+ - name: Build docs to check for errors
48
+ run: mkdocs build --verbose
49
+ if: (github.event_name == 'pull_request')
0 commit comments