-
Notifications
You must be signed in to change notification settings - Fork 16
41 lines (35 loc) · 1.04 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
name: update-docs
on:
push:
paths:
- src/**
- include/**
branches: [ "main" ]
pull_request:
paths:
- src/**
- include/**
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Packages
run: sudo apt-get install -y doxygen graphviz
- name: Generate
run: doxygen ./Doxyfile
- name: Publish
env:
CI_COMMIT_MESSAGE: Auto-generate doxygen documentation
CI_COMMIT_AUTHOR: update-docs-ci
# only commit and push changes on the main branch after the mr has been pushed.
if: github.event_name == 'push'
# Force-adds the doc directory, because the doc directory is still in .gitignore
# to discourage changing the doc directory in a commit.
run: |
git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}"
git config --global user.email "[email protected]"
git add -f doc
git commit -m "${{ env.CI_COMMIT_MESSAGE }}"
git push