-
Notifications
You must be signed in to change notification settings - Fork 8
48 lines (40 loc) · 1.27 KB
/
update-documentation.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
name: Update Documentation
on:
push:
tags: [ '*.*.*' ]
workflow_dispatch:
jobs:
update-documentation:
runs-on: ubuntu-latest
steps:
# Clone the repository
- name: Clone the Main Branch
uses: actions/checkout@v4
with:
ref: main
- name: Clone the Documentation Branch
uses: actions/checkout@v4
with:
submodules: recursive
ref: gh-pages
path: gh-pages
- name: List Directory Structure
run: |
cd ${{github.workspace}}
ls -lAghR
- name: Install Doxygen & Graphviz
run: sudo apt-get update && sudo apt-get install -y doxygen graphviz global
# doxygen - For doxygen
# graphviz - For dot
# global - For htags
- name: Run Doxygen
run: |
cd "${{github.workspace}}/gh-pages"
doxygen ./Doxyfile
- name: Commit Changes
run: |
cd "${{github.workspace}}/gh-pages"
git config user.name github-actions
git config user.email github-actions@github.com
git add -A && git commit -m "Generated Documentation"
git push