forked from flagarde/YAODAQ
-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (42 loc) · 1.33 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Docs
on:
#push:
# branches-ignore:
# - '**'
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
CMAKE_VERSION: 3.16.x
BUILD_TYPE: Release
jobs:
build:
runs-on: macos-latest
steps:
- name: ➕ Install required packages
run: brew install doxygen
&& brew install sphinx-doc
&& pip3 install sphinx-rtd-theme
&& pip3 install breathe
&& pip3 install sphinx-sitemap
- name: 🚀 Checkout
uses: actions/[email protected]
- name: ➕ Install cmake
uses: jwlawson/[email protected]
with:
cmake-version: '${{env.CMAKE_VERSION}}'
github-api-token: ${{ secrets.GITHUB_TOKEN }}
- name: 👷 Build docs
run: cmake -S . -B build -DCMAKE_INSTALL_PREFIX=bin -DBUILD_DOCS=ON -DCMAKE_BUILD_TYPE=$ENV{BUILD_TYPE}
&& cmake --build build --config $ENV{BUILD_TYPE} --parallel ${N}
&& cmake --install build --prefix bin --strip
&& make install
&& touch .nojekyll
- name: 🚀 Deploy docs
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: bin/docs/Sphinx/html # The folder the action should deploy.
SINGLE_COMMIT: true