name: Docs
on:
push:
tags:
- "v*"
workflow_dispatch:
permissions:
contents: write
pages: write
jobs:
docs:
runs-on: ubuntu-latest
env:
GIT_COMMITTER_NAME: ci-bot
GIT_COMMITTER_EMAIL: ci-bot@example.com
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd with:
fetch-depth: 0 - name: Install Rust
uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 - uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 - name: Install wasm-pack
run: cargo install wasm-pack
- name: build wasm
run: scripts/buildwasm
- uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b with:
enable-cache: true
- name: Install Python
run: uv python install - name: Sync
run: uv sync && uv sync --no-dev --inexact --directory python
- name: Deploy
run: |
VERSION=$(git describe --tags --match="v*" --abbrev=0)
uv run mike deploy $VERSION latest --update-aliases --push