-
Notifications
You must be signed in to change notification settings - Fork 126
49 lines (41 loc) · 1.19 KB
/
documentation.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
name: Documentation
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
api-documentation:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Set up Doxygen
run: sudo apt-get install -y doxygen
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Set up dependency cache
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('doc/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
working-directory: ./doc
run: pip install -r requirements.txt
- name: Build documentation
working-directory: ./doc
run: make html
# This artifact contains the HTML output of Sphinx only.
# With index.html at the root of the produced zip file.
- name: Upload documentation
uses: actions/upload-artifact@v2
with:
name: api-docs
path: ./doc/build/html
if-no-files-found: error