-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (46 loc) 路 1.46 KB
/
Copy pathdoxygen.yml
File metadata and controls
56 lines (46 loc) 路 1.46 KB
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
name: Generate Doxygen Documentation
on:
push:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
doxygen:
runs-on: ubuntu-latest
permissions:
contents: read
pages: write
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Doxygen
run: |
sudo apt-get update
sudo apt-get install -y graphviz build-essential
wget https://github.com/doxygen/doxygen/releases/download/Release_1_14_0/doxygen-1.14.0.linux.bin.tar.gz
tar -xzf doxygen-1.14.0.linux.bin.tar.gz
cd doxygen-1.14.0 && sudo make install
doxygen --version
- name: Generate documentation
run: |
doxygen Doxyfile
- name: Upload documentation artifacts
uses: actions/upload-artifact@v4
with:
name: doxygen-docs-${{ github.ref_name }}
path: doxygen/html/
retention-days: 30
- name: Setup Pages
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
uses: actions/configure-pages@v4
- name: Upload to GitHub Pages
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
uses: actions/upload-pages-artifact@v3
with:
path: ./doxygen/html
- name: Deploy to GitHub Pages
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
id: deployment
uses: actions/deploy-pages@v4