-
Notifications
You must be signed in to change notification settings - Fork 31
50 lines (40 loc) · 1.43 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
44
45
46
47
48
49
50
name: Documentation
on:
# Run on the 2nd of every month, at 10AM UTC
schedule:
- cron: '0 10 2 * *'
# Run the workflow manually from the Actions tab
workflow_dispatch:
jobs:
document:
runs-on: ubuntu-20.04
steps:
- name: Clone code repository
uses: actions/checkout@v2
with:
path: rendu
persist-credentials: false
- name: Build documentation
working-directory: ${{github.workspace}}/rendu
run: |
sudo apt-get update -y && sudo apt-get install -yq libclang1-9 libclang-cpp9
wget -O doxygen.tar.gz https://doxygen.nl/files/doxygen-1.9.5.linux.bin.tar.gz
mkdir doxygen && tar -xf doxygen.tar.gz -C doxygen --strip-components=1
doxygen/bin/doxygen docs/Doxyfile
- name: Clone documentation repository
uses: actions/checkout@v2
with:
repository: kosua20/Rendu-documentation
path: doc
persist-credentials: true
token: ${{ secrets.DOC_TOKEN }}
- name: Upload documentation
working-directory: ${{github.workspace}}/doc
run: |
git config user.name "Simon Rodriguez"
git config user.email [email protected]
git rm -rf .
cp -r ../rendu/docs/html/* ./
git add .
git diff-index --quiet HEAD || git commit -a -m "Documentation: update (via CI)."
git push