Skip to content

.github: Migrate to the pyproject.toml (#56) #14

.github: Migrate to the pyproject.toml (#56)

.github: Migrate to the pyproject.toml (#56) #14

Workflow file for this run

name: Deploy Sphinx documentation to Github pages
on:
push:
branches:
- main
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Install dependencies
run: pip install -e '.[docs]'
- name: Build docs
run: sphinx-build docs ./docs/_build/html/
- uses: actions/upload-artifact@v3
with:
name: html-docs
path: docs/_build/html/
- uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_build/html