-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (45 loc) · 1.34 KB
/
generate_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
49
50
51
52
53
54
# From: https://github.com/nullromo/doxygen-example/blob/main/.github/workflows/main.yml
name: Doxygen Action
on:
push:
branches: [main]
permissions:
contents: write
jobs:
build_doxygen:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build Doxygen documentation for Raspberry Pi
uses: mattnotmitt/[email protected]
with:
doxyfile-path: "./Doxyfile"
working-directory: "./app/rpi"
- name: Move Doxygen HTML files into their parent directories
run: |
sudo mv docs/raspberry_pi/html/* docs/raspberry_pi
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
build_doxygen_pdf:
needs: build_doxygen
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: gh-pages
- name: Generate Doxygen PDF
run: |
sudo apt-get update -y
sudo apt-get install -y doxygen-latex
cd raspberry_pi/latex
sudo make
- name: Commit PDF
uses: mikeal/publish-to-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH_NAME: 'gh-pages'