-
Notifications
You must be signed in to change notification settings - Fork 7
66 lines (57 loc) · 1.51 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: doc to github pages
on:
push:
branches: [master]
pull_request:
branches: [master]
workflow_dispatch:
jobs:
doc:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install system dependencies
run: |
sudo apt-get update && \
sudo apt-get upgrade -y && \
sudo apt-get install -y --no-install-recommends \
gdb \
git \
make \
libeigen3-dev \
libgl1-mesa-dev \
libglew-dev \
libglfw3-dev \
libglu1-mesa-dev \
libpng-dev \
libusb-1.0-0 \
libgomp1 \
pybind11-dev \
pandoc \
software-properties-common \
mesa-utils && \
sudo rm -rf /var/lib/apt/lists/*
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[dev,doc]
pandoc --version
- name: Build documentation
run: make doc
- name: Add .nojekyll
run: touch doc/sphinx/build/html/.nojekyll
- name: Deploy to GitHub Pages
if: success()
uses: crazy-max/ghaction-github-pages@v2
with:
target_branch: gh-pages
build_dir: doc/sphinx/build/html
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}