Skip to content

Update ruff requirement from <0.12.13,>0.0.215 to >0.0.215,<0.13.1 #54

Update ruff requirement from <0.12.13,>0.0.215 to >0.0.215,<0.13.1

Update ruff requirement from <0.12.13,>0.0.215 to >0.0.215,<0.13.1 #54

Workflow file for this run

name: docs
on: [push, pull_request, workflow_dispatch]
permissions:
contents: write
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Get history and tags for SCM versioning to work
run: |
git fetch --prune --unshallow
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
git describe --tags
git describe --tags $(git rev-list --tags --max-count=1)
- name: Install uv
uses: astral-sh/setup-uv@v6
- uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Install dependencies
run: |
uv sync --extra doc
- name: Sphinx build
run: |
uv run sphinx-build -b html docs _build
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: _build/
force_orphan: true
- name: Deploy dev
uses: peaceiris/actions-gh-pages@v4
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/dev' }}
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: _build/
force_orphan: true