-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (41 loc) · 1.04 KB
/
docs.yml
File metadata and controls
43 lines (41 loc) · 1.04 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
41
42
43
name: docs
on:
push:
branches:
- main
jobs:
docs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install katex
run: |
sudo apt update
sudo 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/ghaction-github-status@v3.0.0
with:
pages_threshold: major_outage
- name: Deploy to GitHub Pages
if: success()
uses: crazy-max/ghaction-github-pages@v3.0.0
with:
target_branch: docs
build_dir: ./docs/build/html
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}