This repository was archived by the owner on Oct 31, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
48 lines (46 loc) · 1.45 KB
/
updateWebBuild.yml
File metadata and controls
48 lines (46 loc) · 1.45 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
48
name: Update web build
on:
workflow_dispatch:
push:
branches:
- 'main'
jobs:
build:
name: Build
runs-on: ubuntu-latest
timeout-minutes: 90
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
client/Library
client/Temp
client/obj
key: Library-WebGL
- name: Get Beam version
id: beamable_updater
uses: beamable/package-update-action@main
with:
dry-run: true
project-path: "client"
- name: Build WebGL client
id: build
uses: game-ci/unity-builder@v2.0.4
env:
UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }}
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
with:
targetPlatform: WebGL
projectPath: "client"
allowDirtyBuild: true
buildsPath: dist
versioning: Custom
buildMethod: Beamable.Editor.BuildScript.Build
version: ${{ steps.beamable_updater.outputs.local_version }}
- name: upload
run: AWS_ACCESS_KEY_ID=${{secrets.AWS_KEY_ID}} AWS_SECRET_ACCESS_KEY=${{secrets.AWS_SECRET_ACCESS_KEY}} AWS_REGION=us-west-2 aws s3 cp --recursive ./dist/WebGL s3://${{secrets.AWS_BUCKET_BUILDS}}/uploads/chat_gpw --acl public-read