猬嗭笍 Bump the uv group across 1 directory with 2 updates #112
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Docs Build | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| build-deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Install docs dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install uv | |
| uv sync --group docs --extra tools --extra ha | |
| - name: Verify mkdocstrings imports | |
| run: .venv/bin/python -c "import meeseeks_core.common; print(meeseeks_core.common.__name__)" | |
| - name: Generate build info | |
| run: | | |
| SHORT_SHA=$(git rev-parse --short HEAD) | |
| printf '{\"commit\":\"%s\"}\n' "$SHORT_SHA" > docs/build-info.json | |
| - name: Build docs | |
| run: .venv/bin/mkdocs build | |
| - name: Configure git for mike | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| - name: Deploy main docs | |
| if: github.ref == 'refs/heads/main' | |
| run: | | |
| PATH=".venv/bin:$PATH" .venv/bin/mike deploy --push --update-aliases main latest --alias-type copy | |
| PATH=".venv/bin:$PATH" .venv/bin/mike set-default --push latest | |
| - name: Deploy PR docs | |
| if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository | |
| run: | | |
| VERSION="pr-${{ github.event.pull_request.number }}" | |
| PATH=".venv/bin:$PATH" .venv/bin/mike deploy --push "$VERSION" |