Publish one web game build (the repo's www/ folder) to more places than itch.io. GitHub Pages, Cloudflare Pages and Netlify auto-deploy through GitHub Actions on every www/ change (with pull-request previews on Cloudflare and Netlify), Game Jolt auto-uploads with gjpush, and Newgrounds / CrazyGames get a checked upload ZIP. Includes a status check of which targets are set up and what's missing....
Download skill (.zip) Files on GitHubDeploy anywhere
Same flow as itch.io: the game is exported into www/ and committed → each set-up target deploys on
its own. Every workflow only runs when something in www/ changes on main (plus a manual
Run workflow button). Targets that aren’t configured are skipped, not failed.
1. See what’s set up
<skill>/scripts/deploy-status.sh OWNER/REPO <repo-folder>
It lists each target’s workflow file, its GitHub Actions variables (read from the API), and the secrets it needs. Secrets can’t be read back, so ask the user whether they’ve added them.
2. Pick targets
| Target | Address | Template | The user adds | Bot can set |
|---|---|---|---|---|
| GitHub Pages | username.github.io/repo |
assets/deploy-pages.yml |
Settings → Pages → Source: GitHub Actions. Public repo (or a paid plan) | nothing else |
| Cloudflare Pages | project.pages.dev + PR previews |
assets/deploy-cloudflare.yml |
Secrets CLOUDFLARE_API_TOKEN (Pages: Edit), CLOUDFLARE_ACCOUNT_ID |
Variable CLOUDFLARE_PROJECT |
| Netlify | site.netlify.app + PR previews |
assets/deploy-netlify.yml |
Secrets NETLIFY_AUTH_TOKEN, NETLIFY_SITE_ID |
nothing |
| Game Jolt | game page, browser build | assets/deploy-gamejolt.yml |
Secret GJPUSH_TOKEN |
Variables GAMEJOLT_GAME_ID, GAMEJOLT_PACKAGE_ID |
| Newgrounds | newgrounds.com | none (no upload API) | Uploads the ZIP | portal-zip.sh … newgrounds |
| CrazyGames | crazygames.com | none (no upload API) | Submits in the developer portal | portal-zip.sh … crazygames |
Step-by-step human guides (accounts, tokens, screenshots of where things are) are in the guide repo under
docs/services/. Point the user there for their parts.
3. Add a workflow
- Copy the template into
.github/workflows/unchanged. The usernames and IDs live in variables, not in the file. - The bot’s GitHub token needs Workflows: Read and write to push workflow files. If the push is rejected with
refusing to allow ... workflow, tell the user to add that permission. - Set variables if the token has Variables: Read and write:
curl -s -X POST https://api.github.com/repos/OWNER/REPO/actions/variables -d '{"name":"CLOUDFLARE_PROJECT","value":"my-game"}'Otherwise tell the user: Settings → Secrets and variables → Actions → Variables.
- Secrets: always the user’s job. Never ask for the values in chat.
- Commit and push, directly or as a PR depending on the repo’s rules. Adding a workflow doesn’t deploy by itself.
The next
www/change does, or the user clicks Actions → (workflow) → Run workflow.
GitHub Pages serves from /<repo>/, so the game must use relative paths (./game.js). Run the
bash-web-game-checkup skill first if it’s installed.
4. Manual portals
<skill>/scripts/portal-zip.sh www newgrounds # → /tmp/www-newgrounds.zip
<skill>/scripts/portal-zip.sh www crazygames # also checks the 250 MB / 1,500-file limits, Bash.js and outside links
It puts index.html at the top of the ZIP, leaves out junk, checks the limits, and prints where to upload.
Give the user the ZIP with share_media (it shows as a download).
For CrazyGames, make a copy of the build without Bash.js and outside links. Don’t strip them from the main www/.
5. Verify
You can’t read Actions results without Actions: Read on the token. Check the live result instead:
| Target | Check |
|---|---|
| GitHub Pages | curl -s https://api.github.com/repos/OWNER/REPO/pages → html_url, then fetch build-info.json there |
| Cloudflare / Netlify | fetch https://<project>.pages.dev/build-info.json / https://<site>.netlify.app/build-info.json |
| Game Jolt | the game page shows the new build version (0.0.<run number>) |
build-info.json is written by the itch.io deploy workflow. If only these workflows run, compare
index.html contents instead. Wait 1–2 minutes after the push, then check.
Direct deploy from Bash (no GitHub)
Possible for Cloudflare and Netlify if the user adds their token as a Bash API key (see the human guides):
npx wrangler pages deploy www --project-name=<p> or npx netlify-cli deploy --dir=www --site=<id> --prod, with the
env var set to the Bash placeholder. Prefer the GitHub Actions route when the repo already deploys that way.