-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (41 loc) · 1.15 KB
/
manual-build.yaml
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
name: Manually Build the project
on:
[push]
jobs:
build:
name: Build and upload the project
runs-on: self-hosted
env:
working-directory: Dust Bunny
steps:
# Checkout
- uses: actions/checkout@v2
- name: Cache Library
uses: actions/cache@v3
with:
path: Dust Bunny/Library
key: Library-SpringCleaning-TargetPlatform
restore-keys: |
Library-SpringCleaning-
Library-
# Build
- name: Build
uses: game-ci/unity-builder@v4
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
with:
targetPlatform: StandaloneWindows64
projectPath: Dust Bunny
# Upload
- name: Upload build to github
uses: actions/upload-artifact@v3
with:
name: WindowsBuild
path: build
# Correct ownership of _work directory
- name: Fix _work directory ownership
if: always()
working-directory: ../../..
run: pwd && sudo chown -R ubuntu _work