-
Notifications
You must be signed in to change notification settings - Fork 12
39 lines (34 loc) · 1.02 KB
/
mkdocs.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
name: Publish Github pages
on:
push:
branches:
- master
jobs:
ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Ubuntu dependencies
run: sudo apt-get install graphviz pandoc
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.11.9
- run: curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=nightly --profile=minimal -y && rustup show
if: matrix.os == 'ubuntu-latest'
- name: Cache Python dependencies
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install wheel
pip install -e ".[docs]"
- name: Build docs
run: make doc
- name: Deploy docs
run: mkdocs gh-deploy --force