-
Notifications
You must be signed in to change notification settings - Fork 14
47 lines (44 loc) · 1.37 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Nightly Doxygen Build
on:
schedule:
- cron: '0 1 * * *'
workflow_dispatch:
concurrency:
group: ci-${{ github.head_ref }}
cancel-in-progress: true
jobs:
doxygen_nightly:
runs-on: ubuntu-latest
steps:
- name: Checkout Kratos
uses: actions/checkout@v3
with:
repository: KratosMultiphysics/Kratos
ref: master
path: master
- name: Checkout Documentation
uses: actions/checkout@v3
with:
repository: KratosMultiphysics/Documentation
ref: master
path: doxygen
- name: Installing doxygen
shell: bash
run: sudo apt-get install doxygen graphviz -y
- name: Build doxygen web page
shell: bash
run: cd master/documents && doxygen kratos_doxyfile
- name: Copy html to documentation repository
shell: bash
run: cp -r master/documents/html doxygen/Doxygen_files/
- name: Update documentation repository
run: |
cd doxygen
git config --local user.name $USER_NAME
git config --local user.email "[email protected]"
git add .
git commit -m "update docs"
git push -f https://$USER_NAME:[email protected]/KratosMultiphysics/Documentation.git master
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
USER_NAME: github-bot