forked from AliceO2Group/AliceO2
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (30 loc) · 960 Bytes
/
doxygen.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
name: Build Documentation
on:
push:
branches:
- 'dev'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install doxygen
run: |
sudo apt-get update -y
sudo apt-get install -y doxygen doxygen-doc doxygen-latex doxygen-gui graphviz cmake
- uses: actions/checkout@v3
with:
ref: "dev"
persist-credentials: false
- name: Build docs
run: |
cat > CMakeLists.txt <<\EOF
add_subdirectory(doc)
EOF
cmake .
make doc 2>&1 >log.txt
git add doc/html
git config --global user.email "[email protected]"
git config --global user.name "GitHub Action Bot"
git commit -m "Updated README" -a || echo "No changes to commit"
git push https://alibuild:${{ secrets.ALIBUILD_GITHUB_TOKEN }}@github.com/AliceO2Group/docs `git subtree split --prefix doc/html dev`:refs/heads/main --force