Skip to content

Merge pull request #441 from colecitrenbaum/main #58

Merge pull request #441 from colecitrenbaum/main

Merge pull request #441 from colecitrenbaum/main #58

name: Publish the documentation
on:
workflow_dispatch:
push:
branches:
- main
release:
types: [published]
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- name: Checkout the branch
uses: actions/checkout@v2.3.1
with:
persist-credentials: false
- name: Set up Python 3.11
uses: actions/setup-python@v1
with:
python-version: 3.11
- name: Build the documentation with Sphinx
run: |
pip install -e '.[dev]'
sphinx-build -b html docs docs/build/html
- name: Publish the documentation
uses: JamesIves/github-pages-deploy-action@3.6.2
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: docs/build/html
CLEAN: true