Files
Yamtrack/.github/workflows/build-docs.yml
David Davis ecd86524e4 Fix build-docs workflow: use concrete Python version (#1444)
The setup-uv action passes python-version through as UV_PYTHON, and uv
does not accept the '3.x' wildcard that actions/setup-python supports.
This caused 'uv sync' to fail with:

    error: No interpreter found for executable name `3.x` in managed
    installations or search path

Pin to '3.12' to match requires-python and the version used in
app-tests.yml.

Co-authored-by: David Davis <86290+daviddavis@users.noreply.github.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
2026-05-17 15:18:38 +02:00

39 lines
1.0 KiB
YAML

name: build-docs
on:
push:
branches:
- dev
- release
permissions:
contents: write
concurrency:
group: docs-deploy
cancel-in-progress: false
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- uses: astral-sh/setup-uv@v7
with:
python-version: "3.12"
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v4
with:
key: zensical-${{ env.cache_id }}
path: ~/.cache
restore-keys: |
zensical-
- run: uv sync --locked --only-group docs
- name: Deploy versioned docs
run: uv run mike deploy --push ${{ github.ref_name }}
- name: Set default docs version
if: github.ref_name == 'release'
run: uv run mike set-default --push release