Skip to content

Commit

Permalink
ci: build docs on pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
abhidg committed Jul 19, 2024
1 parent 55c75e4 commit 489e334
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/docs-build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,24 @@ on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build-and-deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Install cats with documentation helpers
run: python3 -m pip install '.[docs]'
- name: Build sphinx docs
run: make -C docs html
- name: Deploy sphinx docs
if: github.ref == 'refs/heads/main'
run: |
git config user.name 'github-action'
git config user.email 'github-action'
Expand Down

0 comments on commit 489e334

Please sign in to comment.