-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (29 loc) · 827 Bytes
/
publish_docs.yml
File metadata and controls
36 lines (29 loc) · 827 Bytes
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
name: publish docs
env:
BUILD_DIR: ./build
CMAKE_ADDITIONAL_CONFIG_ARGS: -DSIMPLE_UTILITY_GEN_DOCS_ENABLED=ON
on:
release:
types: [released]
jobs:
docs:
runs-on: ubuntu-latest
container: pommalabs/doxygen:latest
steps:
- uses: actions/checkout@v3
- name: Install & Update Tools
run: |
apk update
apk add cmake
apk add g++
apk add make
apk add git
- name: Generate Docs
run: |
cmake --log-level=VERBOSE -B ${{ env.BUILD_DIR }} -S . ${{ env.CMAKE_ADDITIONAL_CONFIG_ARGS }}
cmake --build ${{ env.BUILD_DIR }} --target GenerateDocs
- name: Publish Docs
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ${{ env.BUILD_DIR }}/docs/html