Skip to content

Commit 6e147a5

Browse files
committed
webver: Configure docs.yml to auto-deploy webversion
1 parent c6fc0d2 commit 6e147a5

2 files changed

Lines changed: 25 additions & 11 deletions

File tree

.github/workflows/ccpp.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: C/C++ CI
1+
name: Checkers
22

33
on: [push, pull_request]
44

.github/workflows/docs.yml

Lines changed: 24 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,36 @@
1-
name: Documentation on github.io
1+
name: Docs, Webverion and Deploy
22

3-
on:
4-
push:
5-
branches: [ master ]
3+
on: [push, pull_request]
64

75
jobs:
8-
build-documentation:
6+
build:
97
runs-on: ubuntu-latest
108
steps:
119
- name: checkout
1210
uses: actions/checkout@v4
13-
- name: apt-update
14-
run: sudo apt-get update -qq
15-
- name: apt-get doxygen
16-
run: sudo apt-get install -y doxygen
11+
#Documentation
12+
- name: Install packages for docs
13+
run: |
14+
sudo apt-get update -qq
15+
sudo apt-get install -y doxygen
1716
- name: build doc
1817
run: make docs
19-
- name: deploy
18+
#Web-version
19+
- name: Install packages for webver
20+
run: |
21+
sudo apt-get update -qq
22+
sudo apt-get install -y make
23+
- name: Setup Emscripten SDK
24+
uses: mymindstorm/setup-emsdk@v14
25+
- name: Verify Emscripten
26+
run: emcc -v
27+
- name: Build SDL3 port for Emscripten
28+
run: embuilder build sdl3
29+
- name: Build web-version
30+
run: make webver
31+
#Deploy to GitHub Pages
32+
- name: Deploy to GitHub Pages
33+
if: ${{ github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/feat/webver') }}
2034
uses: peaceiris/actions-gh-pages@v4
2135
with:
2236
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)