Skip to content

Enable Python 3.8 compatibility #52

Enable Python 3.8 compatibility

Enable Python 3.8 compatibility #52

Workflow file for this run

name: Docs
on: [push, pull_request]
jobs:
build-docs:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Hatch
uses: pypa/hatch@257e27e51a6a5616ed08a39a408a21c35c9931bc
- run: hatch run docs:build
- run: touch docs/_build/html/.nojekyll
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: htmldocs
path: docs/_build/html
deploy-docs:
name: Deploy
needs: build-docs
if: "github.event_name == 'push' && github.ref == 'refs/heads/master'"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Download Artifacts
uses: actions/download-artifact@v4
with:
name: htmldocs
path: html
- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: html
clean: true
force: true