-
-
Notifications
You must be signed in to change notification settings - Fork 7
53 lines (50 loc) · 1.39 KB
/
Documentation.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
52
name: Documentation
on:
push:
branches:
- master
- develop
concurrency:
group: Documentation-${{ github.ref }}
cancel-in-progress: true
jobs:
Build-And-Deploy:
runs-on: ubuntu-latest
env:
MAKEFLAGS: "-j2"
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v2
with:
submodules: recursive
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.12.0
cache: 'pip'
- run: pip install -r doc/requirements.txt
- name: Install dependencies
run: >-
sudo apt-get update && sudo apt-get install -y
doxygen
texlive-base
texlive-latex-extra
texlive-fonts-extra
texlive-fonts-recommended
- name: Configure CMake
run: >
cmake
-B ${{github.workspace}}/build
-DCMAKE_BUILD_TYPE=Release
-DRODIN_BUILD_DOC=ON
-DRODIN_USE_MCSS=ON
-DRODIN_BUILD_SRC=OFF
-DRODIN_BUILD_EXAMPLES=OFF
- name: Build
run: cmake --build ${{github.workspace}}/build --target RodinDoxygen
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ${{github.workspace}}/build/doc/html
destination_dir: docs/${{ github.ref }}