-
Notifications
You must be signed in to change notification settings - Fork 63
41 lines (39 loc) · 994 Bytes
/
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
name: docs
on:
push:
branches:
- main
jobs:
docs:
runs-on: ubuntu-latest
container:
image: local0state/base:cpu
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install katex
run: |
apt update
apt install -y npm
npm install -g katex
- name: Install Dependencies
run: |
pip install --upgrade pip
pip install -r ./docs/requirements.txt
pip install -e .
- name: Compile Sphinx Docs
run: |
cd ./docs/
make html
- name: Check GitHub Pages status
uses: crazy-max/[email protected]
with:
pages_threshold: major_outage
- name: Deploy to GitHub Pages
if: success()
uses: crazy-max/[email protected]
with:
target_branch: docs
build_dir: ./docs/build/html
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}