Skip to content

fix: Sphinx deploy

fix: Sphinx deploy #40

Workflow file for this run

name: Sphinx build
on:
push:
branches: [main, release]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python environment and dependencies
run: |
apt-get update -y && apt-get install -y python3 python3-pip python3-venv pandoc gcc
python3 -m venv venv
. venv/bin/activate
pip install --upgrade pip setuptools wheel
pip install -r docs/requirements.txt
- name: Build HTML
uses: ammaraskar/[email protected]
with:
pre-build-command: |
apt-get update -y && apt-get install -y python3 python3-pip python3-venv pandoc gcc
. venv/bin/activate
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: html-docs
path: docs/build/html/
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/build/html