Skip to content

Sphinx: Render + publish docs #20

Sphinx: Render + publish docs

Sphinx: Render + publish docs #20

Workflow file for this run

name: "Sphinx: Render + publish docs"
on:
workflow_call:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
pages: write
id-token: write
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: "poetry"
- name: Install dependencies
run: poetry install --no-interaction --with doc
- name: Build doc
run: poetry run poe docs
- name: Upload to GitHub pages
uses: actions/upload-pages-artifact@v3
with:
path: docs/_build
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4