Skip to content

Bump https://github.com/astral-sh/ruff-pre-commit (#17) #21

Bump https://github.com/astral-sh/ruff-pre-commit (#17)

Bump https://github.com/astral-sh/ruff-pre-commit (#17) #21

Workflow file for this run

---
# used for publishing documentation on push to main or published release
name: publish docs
on:
push:
branches:
- main
release:
types:
- published
jobs:
build:
# only build and deploy docs if the actor is not dependabot
if: ${{ github.actor != 'dependabot[bot]' }}
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v6.0.2
with:
fetch-depth: 0
- uses: actions/setup-python@v6.2.0
with:
python-version: "3.11"
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v8.1.0
- name: Install docs dependencies
run: uv sync --frozen --group docs
- name: Build documentation
run: |
mkdir pages
touch pages/.nojekyll
cd docs
uv run --frozen sphinx-build src build
# remove any doctrees dirs which aren't needed for publishing
find ./build -type d -name '.doctrees' -exec rm -rf {} +
cp -r build/* ../pages/
- name: Deploy documentation
uses: JamesIves/github-pages-deploy-action@v4.8.0
with:
branch: pages
folder: pages