Skip to content

Commit

Permalink
Build documentation in pull requests
Browse files Browse the repository at this point in the history
This will catch basic issues in PRs.
  • Loading branch information
pradyunsg committed Sep 26, 2022
1 parent 149f77b commit 52fc32f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/deploy-docs.yml
@@ -1,11 +1,12 @@
name: Deploy
name: Documentation
on:
push:
branches: [main]
pull_request:

jobs:
docs:
name: Documentation
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -18,6 +19,7 @@ jobs:
run: nox -s docs

- name: Upload to GitHub Pages
if: github.ref == 'refs/heads/main' && github.repository == 'pradyunsg/furo'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 52fc32f

Please sign in to comment.