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>
34 lines
788 B
YAML
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
|