-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (37 loc) · 1.24 KB
/
build-unity-webgl.yml
File metadata and controls
47 lines (37 loc) · 1.24 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
41
42
43
44
45
46
47
name: Build Unity WebGL and Deploy
on:
push:
branches:
- main
paths:
- 'Unity/CraftSpace/**'
workflow_dispatch:
jobs:
build:
runs-on: self-hosted
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
lfs: true
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
run: cd SvelteKit/BackSpace && npm ci
- name: Setup Unity environment
run: cd SvelteKit/BackSpace && npm run unity:setup
- name: Export schemas to Unity
run: cd SvelteKit/BackSpace && npm run schemas:export:unity
- name: Regenerate Unity schemas
run: cd SvelteKit/BackSpace && npm run schemas:regenerate:unity
- name: Build Unity WebGL app
run: cd SvelteKit/BackSpace && npm run unity:build-webgl
- name: Deploy to WebSites/spacetime
run: cd SvelteKit/BackSpace && npm run unity:deploy-webgl
- name: Trigger GitHub Pages deployment
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
event-type: spacetime-deploy