-
Notifications
You must be signed in to change notification settings - Fork 365
59 lines (46 loc) · 1.36 KB
/
web.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
#
# GitHub Actions for GEOS Web Pages
# Paul Ramsey <[email protected]>
#
name: 'Web'
on:
push:
branches:
- main
jobs:
web:
name: 'Build Web'
runs-on: ubuntu-latest
# Only run docbuild on central repo
if: github.repository == 'libgeos/geos'
steps:
- name: 'Install'
run: |
set -e
uname -a
sudo -E apt-get -yq --no-install-suggests --no-install-recommends install make doxygen
- name: 'Check Out 📗'
uses: actions/checkout@v4
- name: 'Hugo Build 🛠'
# ...or replace 'master' with a full version tag, such as: v0.64.1
uses: jakejarvis/[email protected]
with:
args: --source web --destination public --verbose
- name: 'Doxygen Build 🛠'
run: |
set -e
mkdir build.cmake
cd build.cmake
cmake --version
cmake -DBUILD_DOCUMENTATION=YES ..
cmake --build . --target docs
- name: 'Bundle 🛠'
run: |
mkdir -p public_html/doxygen
cp -ra web/public/* public_html
cp -ra build.cmake/doxygen/doxygen_docs/html/* public_html/doxygen
- name: 'Deploy 🚀'
uses: JamesIves/[email protected]
with:
branch: gh-pages # The branch the action should deploy to.
folder: public_html # The folder the action should deploy.