ci: bump actions to Node 24 runtimes; add workflow_dispatch to publish #2
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 | |
| # Builds the MkDocs site and deploys it to the gh-pages branch. | |
| # Point GitHub Pages at the gh-pages branch (Settings > Pages) once. | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "docs/**" | |
| - "mkdocs.yml" | |
| - "src/**" | |
| - ".github/workflows/docs.yml" | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v6 | |
| - name: Create virtual environment | |
| run: uv venv --python 3.12 | |
| - name: Install package with docs extras | |
| run: uv pip install -e ".[docs]" | |
| - name: Build and deploy to gh-pages | |
| run: uv run --no-project mkdocs gh-deploy --force --no-history |