-
Notifications
You must be signed in to change notification settings - Fork 24
39 lines (38 loc) · 1.08 KB
/
doxygen_update.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
name: Doxygen Update
on:
push:
branches:
- main
pull_request:
branches: [ "main" ]
jobs:
doxygen:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Install dependencies
run: |
sudo apt-get install -y doxygen
python -m pip install --upgrade pip
pip install breathe
- name: Generate doxygen xml
run: doxygen
- name: Push changes
run: |
git config --global user.email "[email protected]"
git config --global user.name "$GITHUB_ACTOR"
mv ./doxy_doc/xml ./xml
breathe-apidoc -o cpp_api xml
git add xml cpp_api
if [ -n "$(git status --porcelain)" ]
then
git commit -m "Update API Docs ($(git rev-parse --short main))."
git push origin HEAD:gh-pages
fi
# git fetch origin gh-pages
# git checkout gh-pages
# git rm -rf xml cpp_api