-
-
Notifications
You must be signed in to change notification settings - Fork 104
58 lines (49 loc) · 1.59 KB
/
docs.yaml
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Documentation build
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
on:
push:
branches:
- master
jobs:
docs:
name: Generate doxygen documentation
runs-on: ubuntu-latest
steps:
- name: Install git
run: |
sudo apt-get update -qq
sudo apt-get remove -qq --force-yes clang* llvm* libllvm* libclang-*-dev
sudo apt-get install -qq --force-yes git doxygen binutils build-essential cmake
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Dependencies
run: |
./ci/jammy.deps.sh
- name: Configure
run: |
mkdir configure
mkdir docs/Doxygen/headers
cd configure
cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DCMAKE_C_COMPILER=/usr/bin/clang-14 -DCMAKE_CXX_COMPILER=/usr/bin/clang++-14
find . -name '*.h' -exec mv {} ../docs/Doxygen/headers/ \;
find . -name '*.hpp' -exec mv {} ../docs/Doxygen/headers/ \;
- name: Build docs
run: |
(cd docs/Doxygen ; doxygen > doxygen.log)
pwd
ls
mkdir build
ls docs/Doxygen
mv docs/Doxygen/output/html/* build/
touch build/.nojekyll
- name: Deploy
uses: JamesIves/[email protected]
with:
repository-name: ossia/score-api-docs
token: ${{ secrets.API_TOKEN_GITHUB }}
branch: gh-pages
folder: build