Skip to content

Fix broken build and deploy documentation #74

Fix broken build and deploy documentation

Fix broken build and deploy documentation #74

Workflow file for this run

name: Build and Deploy Documentation
on:
push:
branches:
- "main"
paths-ignore:
- "tests/**"
pull_request:
workflow_dispatch:
jobs:
build-and-deploy:
defaults:
run:
shell: bash
runs-on: ubuntu-latest
steps:
- name: Install system dependencies for Pillow
run: sudo apt-get update && sudo apt-get install -y libjpeg-dev zlib1g-dev
- uses: actions/checkout@v3
- name: Set up Python 3.12
uses: actions/setup-python@v4
with:
python-version: 3.12
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
- name: Load cached venv
id: cached-pip-wheels
uses: actions/cache@v3
with:
path: ./.venv
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
run: poetry install
- name: Build documentation
run: |
make html
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./doc/build/html