Skip to content

433 use uv instead of pip (#434) #24

433 use uv instead of pip (#434)

433 use uv instead of pip (#434) #24

Workflow file for this run

name: Deploy Documentation
on:
pull_request:
branches: [ "main" ]
push:
branches: [ "main" ]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "deploy-docs"
cancel-in-progress: true
jobs:
build-docs:
name: Build Documentation
runs-on: ubuntu-latest
steps:
- name: 🛎 Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: 🔭 Install UV
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
cache-dependency-glob: "**/pyproject.toml"
- name: 🐍 Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: 📦 Install Hatch
uses: pypa/hatch@install
- name: 🔨 Build Documentation
run: hatch -e docs run build
# Upload artifact on main.
- name: ⬆️ Upload Artifacts
if: github.ref == 'refs/heads/main'
uses: actions/upload-pages-artifact@v3
with:
path: "site"
deploy:
name: Deploy Documentation
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build-docs
steps:
- name: 🎛 Setup Pages
uses: actions/configure-pages@v5
- name: 🚀 Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4