-
Notifications
You must be signed in to change notification settings - Fork 2
52 lines (43 loc) · 1001 Bytes
/
docs.yaml
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
name: docs
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
- galactic
- humble
schedule:
- cron: '0 0 * * *'
jobs:
ubuntu-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Install dependencies
run: |
sudo apt update
sudo apt -y install \
build-essential \
python3 \
python3-pip \
python3-venv \
python3-sphinxcontrib.spelling \
imagemagick
- name: Install python requirements
run: pip3 install -r docs/requirements.txt
- name: Generate HTML docs
run: |
cd docs
make html
- name: Upload documentation
uses: actions/upload-artifact@v1
with:
name: Documentation HTML
path: docs/build/html/
- name: Test docs
run: |
cd docs
make test