Skip to content

chore: update pre-commit hooks (#27) #32

chore: update pre-commit hooks (#27)

chore: update pre-commit hooks (#27) #32

Workflow file for this run

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/wizard_template/**
- pyproject.toml
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: "pip"
- name: Install Hatch
run: python -m pip install hatch
- 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.repository == 'fschuch/wizard-template'
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