Skip to content

Add Unity WebGL GitHub Actions build - #146

Merged
KonH merged 3 commits into
mainfrom
cursor/unity-webgl-github-action-c060
Aug 7, 2026
Merged

Add Unity WebGL GitHub Actions build#146
KonH merged 3 commits into
mainfrom
cursor/unity-webgl-github-action-c060

Conversation

@KonH

@KonH KonH commented Aug 7, 2026

Copy link
Copy Markdown
Owner

Summary

Adds GameCI Unity WebGL CI plus a Unity Play deploy workflow. Both are manual only (workflow_dispatch) — no push/PR auto-runs.

  1. Build Unity WebGL (.github/workflows/build-webgl.yml) — artifact-only build
  2. Deploy Unity Play (.github/workflows/deploy-unity-play.yml) — build + upload via scripts/ci/deploy_unity_play.py
  3. Docs: Docs/CI/unity-webgl-github-actions.md

Deploy mirrors the WebGL Publisher package API and updates project id 790490b4-2b09-4c1c-8a2e-df23f6b43b47 by default. Does not replace GitHub Pages (Blazor client).

Secret setup (required)

GitHub → KonH/GlobalStrategy → Settings → Secrets and variables → Actions

Secret Value
UNITY_LICENSE Full contents of local Unity_lic.ulf
UNITY_EMAIL Unity account email (must own the Unity Play game)
UNITY_PASSWORD Unity password (prefer letters+digits only)
UNITY_PLAY_PROJECT_ID Optional override (default already matches the live listing)

Get the .ulf: Unity Hub → Preferences → Licenses → Add → free personal license, then copy from Unity_lic.ulf (Windows C:\ProgramData\Unity\, macOS /Library/Application Support/Unity/, Linux ~/.local/share/unity3d/Unity/).

After secrets are set

  1. Actions → Build Unity WebGL → Run workflow (artifact), or
  2. Actions → Deploy Unity Play → Run workflow (build + publish)
  3. Confirm https://play.unity.com/en/games/790490b4-2b09-4c1c-8a2e-df23f6b43b47/global-strategy
Open in Web Open in Cursor 

cursoragent and others added 2 commits August 7, 2026 16:18
Adds game-ci unity-builder CI for WebGL using the existing Release build profile, plus docs for setting UNITY_LICENSE / UNITY_EMAIL / UNITY_PASSWORD secrets.

Co-authored-by: KonH <konhit@gmail.com>
Builds WebGL on main/manual dispatch and uploads to the existing Unity Play listing via the WebGL Publisher API, with docs for the shared license secrets and optional UNITY_PLAY_PROJECT_ID override.

Co-authored-by: KonH <konhit@gmail.com>
@KonH
KonH marked this pull request as ready for review August 7, 2026 18:30
Drop push/PR triggers from the build and Unity Play deploy actions so they run only via workflow_dispatch.

Co-authored-by: KonH <konhit@gmail.com>
@KonH
KonH merged commit afee6a1 into main Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants