-
Notifications
You must be signed in to change notification settings - Fork 3
37 lines (30 loc) · 804 Bytes
/
Copy pathdocs-build.yml
File metadata and controls
37 lines (30 loc) · 804 Bytes
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
name: Docs
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
CONAN_HOME: ${{ github.workspace }}/conan_home
jobs:
docs:
if: >-
github.event_name == 'push' &&
contains(join(github.event.commits.*.message, '\n'), ':book:') ||
github.event_name == 'pull_request'
name: Build Documentation
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install documentation dependencies
run: |
sudo apt install -y doxygen graphviz
pip install numpy sphinx sphinx-intl
- name: Build documentation
run: |
python ./docs/build.py