-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (36 loc) · 1.09 KB
/
build-doc.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
# Build RidePy docs
name: docs
on:
push:
workflow_call:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Checkout submodules
run: git submodule update --init --recursive
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: '3.9'
- name: Cache python environment
uses: actions/cache@v4
with:
path: ${{ env.pythonLocation }}
key: ${{ env.pythonLocation }}-${{ hashFiles('setup.py') }}-${{ hashFiles('pyproject.toml') }}
- name: Install system dependencies using apt
run: |
sudo apt-get update && sudo apt-get -y install libboost-all-dev build-essential
- name: Install Dependencies
run: |
pip install -U pip
pip install .[doc]
- name: Build doc
run: sphinx-build -b dirhtml ./doc/ ./_site
- name: Upload artifact
uses: actions/upload-pages-artifact@v3