Skip to content

Commit 03f37bd

Browse files
committed
📖 split doc build CI/CD
1 parent 6842008 commit 03f37bd

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

.github/workflows/docs-build.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Doc CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
env:
10+
CONAN_HOME: ${{ github.workspace }}/conan_home
11+
12+
jobs:
13+
docs:
14+
if: >-
15+
github.event_name == 'push' &&
16+
contains(join(github.event.commits.*.message, '\n'), ':book:') ||
17+
github.event_name == 'pull_request'
18+
name: Build Documentation
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
- name: Checkout code
23+
uses: actions/checkout@v4
24+
25+
- name: Set up Python
26+
uses: actions/setup-python@v5
27+
with:
28+
python-version: '3.12'
29+
30+
- name: Install documentation dependencies
31+
run: |
32+
sudo apt install -y doxygen graphviz
33+
pip install numpy sphinx sphinx-intl
34+
35+
- name: Build documentation
36+
run: |
37+
python ./docs/build.py

0 commit comments

Comments
 (0)