-
-
Notifications
You must be signed in to change notification settings - Fork 2
47 lines (47 loc) · 1.22 KB
/
docs.yml
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
41
42
43
44
45
46
47
name: "Squishy Docs"
on:
push:
branches:
- 'main'
jobs:
document:
runs-on: ubuntu-latest
permissions:
contents: write
pages: write
steps:
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Initialize Environment
shell: bash
env:
WORKSPACE: ${{ github.workspace }}
run: |
echo "$HOME/.local/bin:$PATH" >> $GITHUB_PATH
echo "GITHUB_WORKSPACE=\"`pwd`\"" >> $GITHUB_ENV
- name: Checkout
uses: actions/checkout@v3
with:
lfs: true
submodules: true
- name: Setup
shell: bash
run: |
sudo apt-get update
sudo apt-get install graphviz
sudo pip3 install --upgrade pip setuptools wheel
pip3 install --user -r ./docs/requirements.txt
pip3 install --user .
- name: Build Docs
shell: bash
run: |
sphinx-build -b html ./docs ./_build/
- name: Deploy
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: _build
CLEAN: true