forked from open62541pp/open62541pp
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (36 loc) · 936 Bytes
/
doc.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
name: Doc
on:
push:
branches: [master]
pull_request:
release:
types: [published]
workflow_dispatch:
jobs:
doc:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: aminya/setup-cpp@v1
with:
doxygen: true
graphviz: true
- name: Build documentation
run: |
mkdir build
cd build
cmake -DUAPP_BUILD_DOCUMENTATION=ON ..
cmake --build . --target open62541pp_doc
- name: Deploy
if: (github.event_name == 'release' || github.event_name == 'workflow_dispatch')
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: build/doc_html
- uses: actions/upload-artifact@v4
with:
name: doc-html
path: build/doc_html/
compression-level: 1