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 0b70681 commit f2dbc9d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/cd-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ name: deploy-docs
on:
workflow_dispatch:
push:
branches:
- master
pull_request:
permissions:
contents: write
jobs:
Expand All @@ -17,6 +16,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 @@ -42,3 +42,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 f2dbc9d

Please sign in to comment.