-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (43 loc) · 1.08 KB
/
documentation.yml
File metadata and controls
45 lines (43 loc) · 1.08 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
name: Generate documentation
# only trigger this action on specific events
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build-documentation:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
# checkout repository
- name: Checkout hws
uses: actions/checkout@v4.2.0
with:
path: hardware_sampling
# install dependencies
- name: Dependencies
run: |
sudo apt update
sudo apt-get install -y doxygen graphviz
# configure project via CMake
- name: Configure
run: |
cd hardware_sampling
mkdir build
cd build
cmake -DHWS_ENABLE_DOCUMENTATION=ON ..
# build project
- name: Generate
run: |
cd hardware_sampling/build
make doc
# deploy generated documentation using github.io
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./hardware_sampling/docs/html