Skip to content

v0.11.0-rc-1

v0.11.0-rc-1 #1

Workflow file for this run

name: Deploy Documentation
on:
workflow_dispatch:
release:
types: [published]
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Configure Git User
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
- name: Setup UV
uses: astral-sh/setup-uv@v3
- name: Install maturin globally
run: uv pip install --system maturin
- name: Create virtual environment
run: uv venv
- name: Install dependencies
# Install 'mike' and core package
run: |
uv pip install -e .
uv pip install mkdocs mkdocs-material mkdocstrings[python] mike
- name: Build Rust extension
run: uv run maturin develop
- name: Deploy with Mike
# Deploy current version as 'latest' (or use specialized versioning logic here)
# For main branch, we typically deploy to a specific version or 'dev'
run: |
# Extract version from pyproject.toml or use 'dev'
VERSION=$(grep -m1 'version = ' pyproject.toml | cut -d '"' -f 2)
echo "Deploying version: $VERSION"
# Deploy $VERSION and update 'latest' alias
uv run mike deploy --push --update-aliases $VERSION latest