Skip to content

Commit 0e762e8

Browse files
workflow
1 parent 9559fd6 commit 0e762e8

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/unity-build.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Unity Auto Activation Build
2+
3+
on:
4+
workflow_dispatch: # lets you run manually
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout project
11+
uses: actions/checkout@v4
12+
13+
- name: Activate Unity
14+
uses: game-ci/unity-activate@v2
15+
with:
16+
unityVersion: 6000.0.45f1 # 🔹 Replace with your version from ProjectSettings/ProjectVersion.txt
17+
env:
18+
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
19+
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
20+
UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }} # only if Pro
21+
22+
- name: Build project
23+
uses: game-ci/unity-builder@v4
24+
with:
25+
unityVersion: 6000.0.45f1 # 🔹 Must match above
26+
targetPlatform: StandaloneWindows64
27+
buildName: MyGame
28+
buildPath: build
29+
30+
- name: Upload artifact
31+
uses: actions/upload-artifact@v4
32+
with:
33+
name: MyGame-Windows
34+
path: build

0 commit comments

Comments
 (0)