Skip to content

Commit

Permalink
Add build docs check on pull request
Browse files Browse the repository at this point in the history
  • Loading branch information
smokestacklightnin committed Sep 30, 2024
1 parent 16c41ea commit 260a824
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/cd-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
# Uncomment these lines before merge
# branches:
# - master
pull_request:
permissions:
contents: write
jobs:
Expand All @@ -18,6 +19,7 @@ jobs:
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
if: (github.event_name != 'pull_request')

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

- name: Deploy to GitHub Pages
run: mkdocs gh-deploy --force
if: (github.event_name != 'pull_request')

- name: Build docs to check for errors
run: mkdocs build --verbose
if: (github.event_name == 'pull_request')

0 comments on commit 260a824

Please sign in to comment.