-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (48 loc) · 1.11 KB
/
doc-gen.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
49
50
51
52
53
54
name: Documentation
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
compile:
name: Compile
runs-on: ubuntu-latest
steps:
-
uses: actions/checkout@v3
-
name: Generate Doxygen
uses: mattnotmitt/[email protected]
with:
doxyfile-path: 'doc/Doxyfile'
-
name: Cache documentation
if: ${{ github.ref == 'refs/heads/main' }}
uses: actions/cache/save@v3
with:
path: doc/output/html
key: docs-${{ github.sha }}
push:
name: Push to Pages
if: ${{ github.ref == 'refs/heads/main' }}
needs: [compile]
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
steps:
-
name: Fetch documentation cache
uses: actions/cache/restore@v3
with:
path: doc/output/html
key: docs-${{ github.sha }}
-
name: Upload GitHub Pages artifact
uses: actions/[email protected]
with:
path: doc/output/html
-
name: Deploy GitHub Pages
uses: actions/deploy-pages@v1