mirror of
https://github.com/FuzzyGrim/Yamtrack.git
synced 2026-06-28 06:45:58 +00:00
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>
39 lines
1.0 KiB
YAML
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
|