Publish docs #14
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow builds and publishes the latest docs to | |
# the `gh-pages` branch. | |
# For more details: https://github.com/marketplace/actions/deploy-to-github-pages | |
name: Publish docs | |
on: | |
release: | |
types: [created] | |
workflow_dispatch: | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
# fetch all tags so `versioneer` can properly determine current version | |
fetch-depth: 0 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.9' | |
- name: Install dependencies | |
run: python -m pip install .[dev] | |
- name: Build | |
run: make sphinx | |
shell: bash | |
- name: Publish | |
uses: JamesIves/github-pages-deploy-action@4.0.0 | |
with: | |
branch: gh-pages | |
folder: docs/build/html |