-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (37 loc) · 1.07 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
name: Doxygen CI
on:
push:
branches:
- master
paths:
- Doxyfile
- .github/workflows/doxygen.yml
- 'src/**'
- 'test/**'
jobs:
Doxygen:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Setup
run: |
sudo apt-get update
sudo apt-get -y install doxygen graphviz
- name: Generate Documents
run: |
doxygen
- name: Push Documents
env:
BRANCH: master
GITHUB_USER: btk15049
GITHUB_EMAIL: ${{ secrets.GITHUB_EMAIL }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
test -n `git status --porcelain` && echo "diff is nothing." && exit
git config --global user.email ${GITHUB_EMAIL}
git config --global user.name ${GITHUB_USER}
git remote set-url origin https://${GITHUB_USER}:${GITHUB_TOKEN}@github.com/${{ github.repository }}.git
git add .
git commit -m '[ci] update documents'
git checkout -b ${BRANCH}
git push origin ${BRANCH}