chore(deps): bump pypa/hatch from a3c83ab3d481fbc2dc91dd0088628817488dd1d5 to 257e27e51a6a5616ed08a39a408a21c35c9931bc in the actions group #49
Workflow file for this run
This file contains 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 | |
# See: | |
# https://jupyterbook.org/en/stable/publish/gh-pages.html | |
on: | |
push: | |
tags: | |
- "v*.*.*" | |
branches: | |
- main | |
- release/** | |
pull_request: | |
paths: | |
- .github/workflows/docs.yaml | |
- docs/** | |
- src/** | |
- pyproject.toml | |
permissions: {} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- name: Install Hatch | |
uses: pypa/hatch@257e27e51a6a5616ed08a39a408a21c35c9931bc | |
- name: Build the book | |
run: hatch run docs:build | |
- uses: actions/upload-artifact@v4 | |
with: | |
path: build/ | |
name: documentation | |
deploy: | |
needs: build | |
if: github.event_name == 'push' && github.ref_type == 'tag' && !github.event.pull_request.head.repo.fork | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/download-artifact@v4 | |
with: | |
path: build/ | |
name: documentation | |
# Push the book's HTML to github-pages | |
- name: GitHub Pages action | |
uses: peaceiris/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: build/_build/html |