Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/unity-exe-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Unity Windows Build EXE

on: push

jobs:
build:
runs-on: windows-latest

steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Detect Unity version
id: unityVersion
run: |
$version = (Select-String -Path "ProjectSettings/ProjectVersion.txt" -Pattern "m_EditorVersion").Line.Split()[1]
echo "VERSION=$version" >> $env:GITHUB_ENV

- name: Build Windows 64-bit Player
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
unityVersion: ${{ env.VERSION }}
buildName: UberStrike.exe
buildPath: Build

- name: Upload Build Artifact
uses: actions/upload-artifact@v4
with:
name: WindowsBuild
path: Build/StandaloneWindows64
Loading