-
Notifications
You must be signed in to change notification settings - Fork 5
40 lines (37 loc) · 1.03 KB
/
deploy-docs.yml
File metadata and controls
40 lines (37 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Deploy Sphinx documentation to Pages
on:
push:
branches: [main]
env:
PYTHON_VERSION: '3.11'
jobs:
pages:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
permissions:
pages: write
id-token: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install System Dependencies
run: |
sudo apt update
sudo apt install -y texlive-latex-extra graphviz
- name: Install Python Dependencies
run: |
python -m pip install --upgrade pip setuptools wheel virtualenv
python -m pip install "virtualenv<20.26.0" poetry
poetry config virtualenvs.create false
poetry install
- id: deployment
uses: sphinx-notes/pages@v3
with:
documentation_path: ./docs/source
python_version: ${{ env.PYTHON_VERSION }}
checkout: false
sphinx_build_options: '-b dirhtml'