-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (32 loc) · 1.05 KB
/
build-html5.yaml
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
name: Build HTML5 and upload to itch.io
on:
push:
branches: [build]
workflow_dispatch:
jobs:
build:
name: Build the HTML5 version
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: |
sudo apt update
sudo apt install python3 cmake emscripten nodejs htmlmin ninja-build
- name: Checkout
uses: actions/checkout@v4
- name: Build
run: |
emcmake cmake -DPLATFORM=Web -DCMAKE_BUILD_TYPE=Release -B build -S ${{github.workspace}} -G Ninja
cmake --build build -j 4
- name: Assemble dist-files
run: |
mkdir -p dist-html5
cp build/index.html build/CodenamePedestrian.data build/CodenamePedestrian.wasm build/CodenamePedestrian.js dist-html5
- name: Upload to itch.io
uses: manleydev/butler-publish-itchio-action@master
env:
BUTLER_CREDENTIALS: ${{ secrets.BUTLER_CREDENTIALS }}
CHANNEL: html5
ITCH_GAME: codename-pedestrian
ITCH_USER: nonk123
PACKAGE: dist-html5