forked from BlueBrain/HighFive
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (40 loc) · 1.02 KB
/
gh-pages.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
name: gh-pages
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
publish:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- uses: mamba-org/provision-with-micromamba@main
with:
environment-file: doc/environment.yaml
environment-name: doc-build
- name: Run doxygen
run: |
CMAKE_OPTIONS=(
-DHIGHFIVE_UNIT_TESTS=OFF
)
cmake -B build -S . "${CMAKE_OPTIONS[@]}"
cmake --build build --target doc
cp -r doc/poster build/doc/html/
- name: Deploy to GitHub Pages
if: ${{ success() && github.ref == 'refs/heads/master' && github.event_name == 'push' }}
uses: crazy-max/ghaction-github-pages@v2
with:
target_branch: gh-pages
build_dir: build/doc/html
jekyll: false
keep_history: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}