-
Notifications
You must be signed in to change notification settings - Fork 675
40 lines (38 loc) · 1.13 KB
/
docs.yml
File metadata and controls
40 lines (38 loc) · 1.13 KB
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
name: Docs, Webverion and Deploy
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
#Documentation
- name: Install packages for docs
run: |
sudo apt-get update -qq
sudo apt-get install -y doxygen
- name: build doc
run: make docs
#Webversion
- name: Install packages for webver
run: |
sudo apt-get update -qq
sudo apt-get install -y make
- name: Setup Emscripten SDK
uses: mymindstorm/setup-emsdk@v14
- name: Verify Emscripten
run: emcc -v
- name: Build SDL3 port for Emscripten
run: embuilder build sdl3
- name: Build webversion
run: make webver
#Deploy to GitHub Pages
- name: Deploy to GitHub Pages
if: ${{ github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/feat/webver') }}
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./doc/html/
enable_jekyll: false
allow_empty_commit: false
force_orphan: true