-
Notifications
You must be signed in to change notification settings - Fork 0
78 lines (66 loc) · 1.66 KB
/
firmware.docs.yaml
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: firmware.docs
on:
workflow_dispatch:
push:
branches: [ master ]
paths:
- 'firmware/**'
- '.config/**'
- '.github/**'
jobs:
Docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
# GET DEPENDENCIES
- name: Install dependencies
run: sudo apt-get install -y doxygen
- run: doxygen --version
# BUILD
- name: Build docs
run: |
cd firmware
mkdir -p docs/xml docs/md
doxygen Doxyfile
npx moxygen --templates=docs/templates --groups --classes --output=docs/md/%s.md docs/xml
# UPLOAD
- name: Upload Docs
uses: actions/upload-artifact@v3
with:
name: Docs
path: firmware/docs/md
Publish:
runs-on: ubuntu-latest
needs: Docs
steps:
- uses: actions/checkout@v3
with:
ref: 'gh-pages'
# CLEAN
- run: rm -rf ./firmware
# DOWNLOAD ARTIFACT
- name: Download Docs
uses: actions/download-artifact@v3
with:
name: Docs
path: ./firmware
# CREATE CONTENT
- name: Create Content
run: ./create_content.sh
# PUBLISH
- name: Publish Firmware Docs
uses: peaceiris/[email protected]
if: ${{ always() }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./
enable_jekyll: true
force_orphan: false
keep_files: false
commit_message: ${{ github.event.head_commit.message }}
#user_name: 'github-actions[bot]'
#user_email: 'actions[bot]@users.noreply.github.com'
destination_dir: ./