File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments