-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (50 loc) · 1.46 KB
/
prBuild.yml
File metadata and controls
52 lines (50 loc) · 1.46 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
49
50
51
52
name: PR Build
on:
workflow_dispatch:
pull_request:
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-2020.3.41f1
- 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
version: ${{ steps.beamable_updater.outputs.local_version }}
buildMethod: Beamable.Editor.BuildScript.Build
- uses: actions/upload-artifact@v3
with:
name: Build-WebGL
path: ./dist/WebGL
- uses: github-actions-up-and-running/pr-comment@v1.0.1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
message: Built successfully my friend!