-
Notifications
You must be signed in to change notification settings - Fork 2
51 lines (40 loc) · 1.25 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
51
name: GitHub Pages
on:
push:
branches: [ master ]
permissions:
contents: write
env:
BUILD_TYPE: Release
jobs:
deploy:
container: emscripten/emsdk
runs-on: ubuntu-22.04
steps:
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y cmake python3
sudo apt-get install -y doxygen graphviz rsync
sudo apt-get install -y libasound2-dev mesa-common-dev libx11-dev libxrandr-dev libxi-dev xorg-dev libgl1-mesa-dev libglu1-mesa-dev
- name: Checkout repository
uses: actions/checkout@v3
- name: Configure CMake
run: emcmake cmake -B ./build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build
run: cmake --build ./build --config ${{env.BUILD_TYPE}} -j
- name: Build Documentation
run: doxygen
- name: Setup Install Directory
run: |
cmake --install ./build --prefix ./install
mv ./doc/build/html ./install/web/doc
touch ./install/web/.nojekyll
- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
github_token: ${{ inputs.github_token }}
workspace: .
folder: ./install/web
message: "Update generated page"
branch: gh-pages