Skip to content

Commit 260a824

Browse files
Add build docs check on pull request
1 parent 16c41ea commit 260a824

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/cd-docs.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
# Uncomment these lines before merge
66
# branches:
77
# - master
8+
pull_request:
89
permissions:
910
contents: write
1011
jobs:
@@ -18,6 +19,7 @@ jobs:
1819
run: |
1920
git config user.name github-actions[bot]
2021
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
22+
if: (github.event_name != 'pull_request')
2123

2224
- name: Set up Python 3.10
2325
uses: actions/setup-python@v5
@@ -43,3 +45,8 @@ jobs:
4345

4446
- name: Deploy to GitHub Pages
4547
run: mkdocs gh-deploy --force
48+
if: (github.event_name != 'pull_request')
49+
50+
- name: Build docs to check for errors
51+
run: mkdocs build --verbose
52+
if: (github.event_name == 'pull_request')

0 commit comments

Comments
 (0)