-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (29 loc) · 929 Bytes
/
deploy_docs.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
name: Deploy Docs
on:
push:
branches: [ main ]
paths:
- '.github/workflows/deploy_docs.yml'
- 'docs/**'
- 'include/**'
workflow_dispatch:
jobs:
deploy_docs:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: ssciwr/doxygen-install@v1
- name: Install Poxy
run: sudo pip install poxy --break-system-packages
- name: Configure CMake
run: cmake -B ${{ github.workspace }}/build -S ${{ github.workspace }} -DBETHUTIL_BUILD_DOCS=ON -DBETHUTIL_BUILD_SRC=OFF -DBUILD_TESTING=OFF
- name: Build
run: cmake --build ${{ github.workspace }}/build --target docs
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
force_orphan: true
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ${{ github.workspace }}/build/docs/html/