-
Notifications
You must be signed in to change notification settings - Fork 9
41 lines (35 loc) · 1.01 KB
/
unity-build.yml
File metadata and controls
41 lines (35 loc) · 1.01 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
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: Setup Unity
uses: buildalon/activate-unity-license@v1
with:
unityVersion: 2022.3.21f1
license: 'Personal'
username: '${{ secrets.UNITY_USERNAME }}'
password: '${{ secrets.UNITY_PASSWORD }}'
- name: Build Android
uses: game-ci/unity-builder@v2
with:
targetPlatform: Android
buildPath: Artifacts/Android
- name: Upload Build Artifact
uses: actions/upload-artifact@v3
with:
name: AndroidBuild
path: Artifacts