Files
darth-veitcher-comfydv/.github/workflows/docs.yml
T
James VeitchandClaude Sonnet 5 335ff5e31a chore: derive package version from git tags via hatch-vcs
Replaces the static project.version string with dynamic = ["version"],
sourced from the nearest git tag (hatch-vcs). Fixes docs.yml, which read
pyproject.toml's version field directly and would have broken once that
field stopped being a plain string; it now reads the resolved version via
importlib.metadata after `uv sync` installs the package.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-04 13:51:55 +01:00

34 lines
788 B
YAML

name: Deploy docs
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Install dependencies
run: uv sync --group docs
- name: Configure git for gh-pages push
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
- name: Deploy docs with mike
run: |
VERSION=$(uv run python -c "from importlib.metadata import version; print(version('comfydv'))")
uv run mike deploy --push --update-aliases "$VERSION" stable