Skip to content

Unity Build

Unity Build #7

Workflow file for this run

name: Unity Build
on:
workflow_dispatch: # run manually for now
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
# 🔹 Activates Unity Personal using your Unity ID credentials
- name: Activate Unity
uses: game-ci/unity-activate@v2
with:
unityVersion: 2022.3.18f1
env:
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
# 🔹 Build for Windows (change platform if needed)
- name: Build project
uses: game-ci/unity-builder@v4
with:
unityVersion: 2022.3.18f1
targetPlatform: StandaloneWindows64
- name: Upload build
uses: actions/upload-artifact@v4
with:
name: GameBuild
path: build