-
-
Notifications
You must be signed in to change notification settings - Fork 64
58 lines (51 loc) · 1.44 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
53
54
55
56
57
58
name: Documentation
on:
push:
branches:
- develop
- master
pull_request:
schedule:
- cron: '0 0 1 * *'
jobs:
documentation:
name: "Regenerate and publish Documentation"
runs-on: ubuntu-20.04
env:
NAME: Documentation
steps:
- name: Checkout Documentation
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
- name: Cache Hugo
id: cache-hugo
uses: actions/cache@v4
with:
path: hugo_bin
key: documentation-hugo_bin
- name: Download Hugo
if: steps.cache-hugo.outputs.cache-hit != 'true'
shell: bash
run: |
wget -O hugo.tar.gz https://github.com/gohugoio/hugo/releases/download/v0.52/hugo_0.52_Linux-64bit.tar.gz
mkdir hugo_bin
tar xf hugo.tar.gz -C hugo_bin
- name: Regenerate Documentation
shell: bash
run: |
export PATH=$PATH:`pwd`/hugo_bin
cd doc/html
git checkout gh-pages
cd ../..
CXX=clang++ ctest -S .docs.cmake -V
cd doc/html
echo "google-site-verification: google5fc8a1f8de4b73f0.html" > google5fc8a1f8de4b73f0.html
- name: Publish Documentation
uses: JamesIves/github-pages-deploy-action@v4
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: doc/html
CLEAN: true