-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (34 loc) · 1.05 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
name: Generate Doxygen documentation
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
# Prevent workflow from running by default on forks
if: github.repository == 'discosat/csp_proc'
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
ref: gh-pages
- name: Set git identity
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
- name: Merge main
run: |
git fetch origin main
git merge origin/main --allow-unrelated-histories || (git checkout --theirs . && git add . && git commit -m "Resolved merge conflict by using incoming changes")
- name: Install Doxygen
run: sudo apt-get install doxygen
- name: Generate documentation
run: |
doxygen Doxyfile
- name: Commit and push changes
run: |
git add docs/html
git commit -m "Update Doxygen documentation" -a || echo "No changes to commit"
git push origin gh-pages