-
Notifications
You must be signed in to change notification settings - Fork 9
39 lines (32 loc) · 958 Bytes
/
unity-build.yml
File metadata and controls
39 lines (32 loc) · 958 Bytes
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
name: Unity Build on
on:
push:
branches:
- '**'
jobs:
build:
if: contains(github.event.head_commit.message, '#build')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Cache Library
uses: actions/cache@v3
with:
path: Library
key: Library-${{ runner.os }}-${{ hashFiles('**/ProjectSettings/ProjectVersion.txt') }}
restore-keys: |
Library-${{ runner.os }}-
- name: Build Android
uses: game-ci/unity-builder@v4
with:
unityVersion: 2023.2.1f1
targetPlatform: Android
env:
UNITY_USERNAME: ${{ secrets.UNITY_USERNAME }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
- name: Upload Build Artifact
uses: actions/upload-artifact@v4
with:
name: AndroidBuild
path: Artifacts