-
Notifications
You must be signed in to change notification settings - Fork 25
79 lines (59 loc) · 1.92 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# This is a basic workflow to help you get started with Actions
name: Doxygen
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install doxygen
run: sudo apt-get install doxygen
- uses: actions/checkout@v2
with:
path: main
- name: Create Build Environment
run: cmake -E make_directory ${{github.workspace}}/build
- name: Configure CMake
shell: bash
working-directory: ${{github.workspace}}/build
run: cmake $GITHUB_WORKSPACE/main
- name: Build
working-directory: ${{github.workspace}}/build
shell: bash
run: cmake --build . --target doxygen
- name: Checkout GH Pages
uses: actions/checkout@v2
with:
path: gh-pages
ref: gh-pages
ssh-key: ${{secrets.GH_PAGES_SSH_KEY}}
- name: GIT config
working-directory: ${{github.workspace}}/gh-pages
shell: bash
run : |
git config user.email "support@an.kaist.ac.kr"
git config user.name "ANLAB Support"
- name: Remove old doxygen
working-directory: ${{github.workspace}}/gh-pages
shell: bash
run: rm -rf doc
- name: Copy new doxygen
working-directory: ${{github.workspace}}/gh-pages
shell: bash
run: cp -r ${{github.workspace}}/build/doc/html doc
- name: Commit new doxygen
working-directory: ${{github.workspace}}/gh-pages
shell: bash
run: |
git add -A
git commit -m "Update doc from $GITHUB_SHA"
- name: Push new doxygen
working-directory: ${{github.workspace}}/gh-pages
shell: bash
run: |
git push