This repository contains GitHub Actions workflows for building Unity WebGL games created by STAN AI.
- Automated Unity WebGL Builds: Triggered via workflow_dispatch from STAN backend
- Ad Injection: Automatically injects Adsterra monetization for free-tier games
- Domain Lockdown: Games only run on
*.stanlink.onlineand*.stanl.inkdomains - R2 Deployment: Builds deployed to Cloudflare R2 bucket
stan-games
R2 Configuration:
R2_ACCESS_KEY: Your R2 access keyR2_SECRET_KEY: Your R2 secret keyR2_ENDPOINT:https://<account-id>.r2.cloudflarestorage.com
Unity License:
UNITY_EMAIL: Your Unity account emailUNITY_PASSWORD: Your Unity account password
STAN Backend:
STAN_BACKEND_URL:https://stan-backend.stanleyisaac134.workers.devSTAN_API_KEY: Your STAN API key
- Download Unity project from R2
stan-projectsbucket - Build WebGL using Unity Builder (game-ci/unity-builder@v4)
- Inject Ads - Adsterra script added to
index.html - Deploy to R2
stan-games/{slug}/folder - Notify STAN backend of completion
- Cleanup all temporary files
- StanSecurity.cs: Injected by CodingAgent into every game
- StanBridge.jslib: WebGL plugin for URL verification
- Games check if hosted on authorized domains (
stanlink.onlineorstanl.ink) - Unauthorized hosting redirects to
https://games.stanlink.online
inject-ads.jsruns post-build- Adsterra Social Bar script injected into
index.html - Free-tier games monetized automatically
Games are accessible at: https://games.stanlink.online/{slug}
Example: https://games.stanlink.online/efootball
- GitHub Actions: FREE (2000 min/month)
- Cloudflare R2: FREE (10GB storage)
Total: $0/month 🎉