Skip to content

⬆️ Update GH Actions and pre-commit checks #502

⬆️ Update GH Actions and pre-commit checks

⬆️ Update GH Actions and pre-commit checks #502

Workflow file for this run

# Simple workflow for deploying Sphinx content to GitHub Pages
name: Deploy static content to Pages
on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
permissions: {}
jobs:
deploy:
name: Single deploy job since we’re just deploying
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read # necessary for the deployment to GitHub Pages
pages: write # necessary for the deployment to GitHub Pages
id-token: write # necessary for the deployment to GitHub Pages
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Install packages
run: sudo apt install plantuml
- name: Setup pandoc
uses: pandoc/actions/setup@86321b6dd4675f5014c611e05088e10d4939e09e # v1.1.1
- name: Setup python
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version-file: .python-version
architecture: x64
- name: Setup cached uv
uses: hynek/setup-cached-uv@34e35d30f1ebc7421a5cc733bca38dcc62603960 # v2.6.0
- name: Build and activate venv
run: |
uv venv
echo "$PWD/.venv/bin" >> $GITHUB_PATH
uv pip install --group=docs
- name: Setup Pages
uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6.0.0
- name: Build HTML
run: uv run make html
working-directory: docs/
- name: Upload artifact
uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
with:
path: docs/_build/html
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5.0.0