Skip to content

Bump actions/upload-pages-artifact from 3 to 4 #198

Bump actions/upload-pages-artifact from 3 to 4

Bump actions/upload-pages-artifact from 3 to 4 #198

Workflow file for this run

name: Documentation
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: astral-sh/setup-uv@v7
- uses: actions/checkout@v5
- name: Build Sphinx documentation
run: |
uv run --group doc sphinx-build doc/ _site/
- name: Upload artifact
# Automatically uploads an artifact from the './_site' directory by default
uses: actions/upload-pages-artifact@v4
deploy:
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
permissions:
contents: read
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4