-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (40 loc) · 1.16 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
name: documentation
on: workflow_dispatch
permissions:
contents: write
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install pip dependencies
run: pip3 install --no-cache-dir \
sphinx \
docutils \
sphinx_rtd_theme \
breathe \
m2r2
- name: Install apt packages
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: doxygen graphviz git graphviz ttf-freefont cmake
version: 1.0.0
- name: Doxygen Build
run: |
pushd docs
sphinx-build . ./sphinx/_build
doxygen ./doxygen/Doxyfile.in
popd
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.event_name == 'pull_request' }}
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/sphinx/_build/
force_orphan: true