Skip to content

Commit

Permalink
enh(docs.yaml): Check for doc failures on pull_request. (#37)
Browse files Browse the repository at this point in the history
* enh(docs.yaml): Check for doc failures on pull_request.

* fix syntax
  • Loading branch information
daavoo authored Dec 4, 2024
1 parent 5791a95 commit f806c62
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Documentation
on:
push:
branches: [main]
pull_request:
workflow_dispatch:

jobs:
Expand All @@ -29,6 +30,10 @@ jobs:
- name: Install requirements
run: pip install -e '.[docs]'

- name: Publish docs
- name: Build docs
if: github.event_name == 'pull_request'
run: mkdocs build -s

- name: Publish docs
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
run: mkdocs gh-deploy

0 comments on commit f806c62

Please sign in to comment.