Skip to content

Add hatch to pre-commit (#12) #3

Add hatch to pre-commit (#12)

Add hatch to pre-commit (#12) #3

Workflow file for this run

name: docs
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Build the docs
run: |
pip install --upgrade hatch
hatch run docs:build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: docs/build/html