Adding change log for v0.16.4 (#291) #55
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: Generate Site | |
| on: | |
| push: | |
| branches: | |
| - main | |
| tags: | |
| - v* | |
| - latest | |
| paths: | |
| - docs/** | |
| - mkdocs.yml | |
| - pyproject.toml | |
| - src/** | |
| workflow_dispatch: # allow manual trigger | |
| permissions: | |
| contents: write | |
| concurrency: | |
| group: docs-deployment | |
| cancel-in-progress: false | |
| jobs: | |
| build-site: | |
| runs-on: ubuntu-latest | |
| # Publish main continuously and stable version tags as releases. | |
| if: github.ref == 'refs/heads/main' || github.ref == 'refs/tags/latest' || (startsWith(github.ref, 'refs/tags/v') && !contains(github.ref, '-')) | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v6 | |
| - name: Sync docs deps only | |
| run: uv sync --group docs --no-dev | |
| - name: Configure Git author | |
| run: | | |
| git config user.name github-actions[bot] | |
| git config user.email 41898282+github-actions[bot]@users.noreply.github.com | |
| - name: Deploy main documentation | |
| if: github.ref == 'refs/heads/main' | |
| shell: bash | |
| run: | | |
| push_args=(--push) | |
| if [[ "${ACT:-}" == "true" ]]; then | |
| push_args=() | |
| fi | |
| uv run --no-sync mike deploy "${push_args[@]}" main | |
| - name: Deploy release documentation | |
| if: startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/tags/latest' | |
| shell: bash | |
| run: | | |
| push_args=(--push) | |
| if [[ "${ACT:-}" == "true" ]]; then | |
| push_args=() | |
| fi | |
| if [[ "$GITHUB_REF_NAME" == v* ]]; then | |
| version="${GITHUB_REF_NAME#v}" | |
| else | |
| release_tag=$(git tag --points-at HEAD --list 'v*' --sort=-version:refname | head -n 1) | |
| test -n "$release_tag" | |
| version="${release_tag#v}" | |
| fi | |
| uv run --no-sync mike deploy "${push_args[@]}" --update-aliases "$version" latest | |
| uv run --no-sync mike set-default "${push_args[@]}" latest |