Skip to content

⬆️ bump actions/deploy-pages from 4 to 5 (#376) #11

⬆️ bump actions/deploy-pages from 4 to 5 (#376)

⬆️ bump actions/deploy-pages from 4 to 5 (#376) #11

Workflow file for this run

name: Deploy Documentation
on:
push:
branches: [main]
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0 # Full history for git-based metadata
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.13"
cache: "pip"
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: "18"
cache: "npm"
- name: Install Node.js dependencies and build assets
run: |
npm ci
npm run build
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -e .[doc]
- name: Build documentation
run: |
sphinx-build -n --keep-going -b html docs/ docs/_build/html
- name: Upload artifact
uses: actions/upload-pages-artifact@v4
with:
path: docs/_build/html
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5