TExcelTAD
Home › Assets, Tools & Shipping › Mini Project: Ship to itch.io

Mini Project: Ship to itch.io

Time to put the whole course to work on one real release. Take a finished small game, for example Star Catcher from Mini Project: Star Catcher or any game from 2D Games with JavaScript & Canvas, and take it from "runs on my machine" to a public itch.io page that strangers can play, with a pipeline you can reuse for every future game.

What you'll build:

Piece Lessons
A repository with ignore and attribute rules, a README and a dev log A Reliable Project Workflow, READMEs & Portfolio Pages
A version and changelog script Version & Build Numbers, Changelogs from Commits
A packaging script that produces an itch-ready zip Publishing on itch.io
A CI workflow that builds and uploads on every version tag GitHub Actions & GameCI
The store-page asset list and a complete release checklist Store Page Assets, Field Notes: Builds & Releases

Step 1: the repository

Start with a clean repository whose first commit is the working game plus the rules files. A browser game's "build" is just the files in game/, so dist/ (the packaged output) is ignored:

bash · try it yourself
mkdir star-catcher && cd star-catcher && git init -q
mkdir -p game/assets tools .github/workflows
printf '<!doctype html>\n<title>Star Catcher</title>\n<p id="version">dev</p>\n<script src="game.js"></script>\n' > game/index.html
printf 'console.log("Star Catcher");\n' > game/game.js
printf 'PNG-DATA' > game/assets/star.png
cat > .gitignore <<'EOF'
dist/
*.zip
.env
*.keystore
EOF
cat > .gitattributes <<'EOF'
* text=auto
*.png binary
*.ogg binary
*.psd filter=lfs diff=lfs merge=lfs -text lockable
EOF
printf '# Star Catcher\n' > README.md
printf '0.9.0\n' > VERSION
git add . && git commit -q -m "feat: playable Star Catcher from the canvas course"
git tag -a v0.9.0 -m "0.9.0 jam build"
git ls-files
.gitattributes
.gitignore
README.md
VERSION
game/assets/star.png
game/game.js
game/index.html

A browser game with a few small PNGs doesn't need LFS yet, so .png is only marked binary; the .psd rule is ready for when source art arrives. Fill in the README using the template from READMEs & Portfolio Pages (GIF, one-line pitch, play link, controls, what you built, known limitations, credits).

Step 2: commits that describe the release

Work in small commits with Conventional Commits messages, so the release script can decide the version and write the changelog. A few weeks of polish might look like this:

text
fix: pause menu stayed open after restart
feat: gamepad support
feat(audio): mute toggle remembered between sessions
chore: update dev dependencies
fix(web): game scaled wrongly on high-DPI screens
docs: controls table in README

Step 3: the version and changelog script

tools/release.py reads the commits since the last tag (git log v0.9.0..HEAD --format='%h %s' in the real script), decides the bump (breaking change → major, any feat → minor, otherwise patch; while the version is 0.x, breaking changes bump the minor), writes VERSION, and prepends a section to CHANGELOG.md. The Git commands are left out so it runs here; the decision logic is complete:

python · try it yourself
import re

PATTERN = re.compile(r"^(?P<sha>[0-9a-f]+) (?P<type>\w+)(?:\((?P<scope>[\w-]+)\))?(?P<bang>!)?: (?P<desc>.+)
quot;) TITLES = {"feat": "Added", "fix": "Fixed", "perf": "Improved"} def next_version(current, commits): major, minor, patch = map(int, current.split(".")) kinds = [PATTERN.match(c) for c in commits] kinds = [m for m in kinds if m] if any(m["bang"] for m in kinds): return f"{major}.{minor + 1}.0" if major == 0 else f"{major + 1}.0.0" if any(m["type"] == "feat" for m in kinds): return f"{major}.{minor + 1}.0" if any(m["type"] in ("fix", "perf") for m in kinds): return f"{major}.{minor}.{patch + 1}" return None # nothing user-visible: no release def changelog_section(version, release_date, commits): groups = {} for c in commits: m = PATTERN.match(c) if m and m["type"] in TITLES: scope = f"**{m['scope']}:** " if m["scope"] else "" groups.setdefault(TITLES[m["type"]], []).append(f"- {scope}{m['desc']}") lines = [f"## [{version}] - {release_date}"] for title in ("Added", "Fixed", "Improved"): if title in groups: lines += ["", f"### {title}", *groups[title]] return "\n".join(lines) current = "0.9.0" commits = [ "3f1c2ab fix: pause menu stayed open after restart", "8e0d4c1 feat: gamepad support", "c51a9e7 feat(audio): mute toggle remembered between sessions", "0b7d2f3 chore: update dev dependencies", "9a6e1d0 fix(web): game scaled wrongly on high-DPI screens", "71f0c3b docs: controls table in README", ] version = next_version(current, commits) print(f"VERSION: {current} -> {version}") print() print(changelog_section(version, "2026-11-20", commits)) print() print("next steps:") print(f" git commit -am 'chore: release {version}'") print(f" git tag -a v{version} -m '{version}' && git push --follow-tags")
VERSION: 0.9.0 -> 0.10.0

## [0.10.0] - 2026-11-20

### Added
- gamepad support
- **audio:** mute toggle remembered between sessions

### Fixed
- pause menu stayed open after restart
- **web:** game scaled wrongly on high-DPI screens

next steps:
  git commit -am 'chore: release 0.10.0'
  git tag -a v0.10.0 -m '0.10.0' && git push --follow-tags

The date is passed in (not read from the clock), which keeps the function testable. In the real script, get it from the command line or from CI, and refuse to run on a dirty working tree or off main (Field Notes: Builds & Releases).

Step 4: packaging the build

The package step copies the game into dist/, stamps the version into the page, and zips the contents (not the folder) so index.html sits at the top of the zip, as itch.io requires. As a shell script, verified here with real tools:

bash · try it yourself
mkdir -p star-catcher/game/assets && cd star-catcher
printf '<!doctype html>\n<title>Star Catcher</title>\n<p id="version">dev</p>\n<script src="game.js"></script>\n' > game/index.html
printf 'console.log("Star Catcher");\n' > game/game.js
printf 'PNG-DATA' > game/assets/star.png
printf '1.0.0\n' > VERSION

# --- tools/package.sh ---
set -e
version=$(cat VERSION)
rm -rf dist && mkdir -p dist/web
cp -r game/. dist/web/
sed -i "s|<p id=\"version\">dev</p>|<p id=\"version\">v$version</p>|" dist/web/index.html
(cd dist/web && zip -qr "../star-catcher-$version-web.zip" .)
grep -o '<p id="version">[^<]*' dist/web/index.html
unzip -Z1 "dist/star-catcher-$version-web.zip" | sort
<p id="version">v1.0.0
assets/
assets/star.png
game.js
index.html

Run the zip through the checker from Publishing on itch.io (index at the root, relative paths, matching case) before the first upload.

Step 5: the CI workflow

.github/workflows/release.yml packages and uploads every time a version tag is pushed. The BUTLER_API_KEY secret comes from your itch.io account's API keys page (Settings → API keys), stored under the repository's Settings → Secrets and variables → Actions:

yaml
name: Release to itch.io

on:
  push:
    tags: ['v*']

jobs:
  release:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v5

      - name: Check that VERSION matches the tag
        run: |
          test "v$(cat VERSION)" = "$GITHUB_REF_NAME" || { echo "VERSION file does not match tag"; exit 1; }

      - name: Package
        run: bash tools/package.sh

      - name: Keep the build as an artifact
        uses: actions/upload-artifact@v4
        with:
          name: web-${{ github.ref_name }}
          path: dist/web

      - name: Install butler
        run: |
          curl -sSL -o butler.zip https://broth.itch.zone/butler/linux-amd64/LATEST/archive/default
          unzip -q butler.zip -d butler && chmod +x butler/butler

      - name: Push to itch.io
        env:
          BUTLER_API_KEY: ${{ secrets.BUTLER_API_KEY }}
        run: butler/butler push dist/web yourname/star-catcher:html5 --userversion-file VERSION

Check the action versions against their release pages when you set this up. On the first push, open the itch.io Edit game page: set the kind of project to HTML, tick This file will be played in the browser on the html5 upload, and set the viewport size to your canvas size.

Step 6: the store page assets

Prepare these before you make the page public (Store Page Assets, Screenshots, GIFs & Trailers):

Asset Spec Made from
Cover image 630 × 500 (itch.io's recommended size), readable when small key art + logo
Gameplay GIF 640 px wide, 25 fps, under 10 seconds, loops cleanly ffmpeg palette recipe
Screenshots 3–5, at the game's native resolution, showing the core loop, a combo, a game over in-game capture
Short description one sentence: what you do and why it's fun README pitch
Long description controls table, features, credits, a second GIF README
Tags and genre Arcade, Casual, a few specific tags
Page theme background and text colours matching the game
Devlog post #1 "Star Catcher 1.0 is out" with the changelog Step 3 output

Step 7: the release checklist

Copy this into RELEASE_CHECKLIST.md, tick it for every release, and add a line whenever something slips through:

markdown
## Release vX.Y.Z — date: ____

### Code and build
- [ ] All changes committed; working tree clean; on main
- [ ] tools/release.py run: VERSION bumped, CHANGELOG.md updated and edited for players
- [ ] Release commit tagged vX.Y.Z and pushed with --follow-tags
- [ ] CI release workflow green; artifact downloaded and spot-checked
- [ ] Version string visible in the game matches the tag
- [ ] No secrets in the repository or the zip (API keys, .env, keystores)

### Quality
- [ ] Stranger test: someone new plays the uploaded build without help
- [ ] Tested in Chrome, Firefox and Safari (or the browsers you support), desktop and one phone
- [ ] Keyboard, mouse/touch and gamepad paths all work; pause on blur works
- [ ] Sound starts after the first input (autoplay rules); mute toggle remembered
- [ ] Saved data from the previous version still loads (or is migrated)
- [ ] Accessibility basics: remappable keys or alternatives, readable text, no colour-only cues

### Store page
- [ ] Cover, GIF, screenshots, descriptions, tags and controls up to date
- [ ] Credits and licences for all third-party assets listed
- [ ] Page visibility: Restricted for testing, Public for launch
- [ ] Devlog post with the player-facing changelog

### After release
- [ ] Played the live build from the itch.io page
- [ ] Comments and bug reports checked daily for the first week
- [ ] Previous version's zip kept (re-push it to roll back)
- [ ] Dev log entry: what went well, what to change next time

A short gate script can refuse to tag a release while boxes are unticked:

python · try it yourself
checklist = """
### Code and build
- [x] All changes committed; working tree clean; on main
- [x] VERSION bumped, CHANGELOG.md updated and edited for players
- [ ] Release commit tagged and pushed
### Quality
- [x] Stranger test: someone new plays the uploaded build without help
- [ ] Tested in Chrome, Firefox and Safari
### Store page
- [x] Cover, GIF, screenshots, descriptions, tags and controls up to date
"""

section = None
open_items = []
done = 0
for line in checklist.strip().splitlines():
    if line.startswith("### "):
        section = line[4:]
    elif line.startswith("- [ ] "):
        open_items.append((section, line[6:]))
    elif line.startswith("- [x] "):
        done += 1
total = done + len(open_items)
print(f"{done}/{total} items done")
for section, item in open_items:
    print(f"  OPEN [{section}] {item}")
print("release blocked" if open_items else "ready to tag")
4/6 items done
  OPEN [Code and build] Release commit tagged and pushed
  OPEN [Quality] Tested in Chrome, Firefox and Safari
release blocked

Step 8: launch and look back

  1. Run the release script, push the tag, and watch CI upload the build.
  2. Make the page public, post the devlog, share the GIF where your audience is.
  3. Play the live page yourself, then watch the first players' comments.
  4. Two weeks later, write a short post-mortem with numbers (Post-Mortems), and add what you learned to the checklist.

Extensions: add a Windows/Linux desktop build with Electron or Tauri or a native engine export, pushed to windows and linux channels; run the asset validator in CI; publish a Steam Coming Soon page for a bigger follow-up game; add a crash/error reporter that sends window.onerror reports to a service, with a consent toggle.

Test yourself

In the release script, what version follows 0.9.0 when the commits include a feat and two fix commits?

  1. 0.9.1
  2. 0.10.0
  3. 1.0.0
  4. 0.9.2

Why does the packaging step zip the contents of dist/web instead of the folder itself?

  1. Smaller files
  2. itch.io needs index.html at the top level of the zip
  3. Zip can't store folders
  4. To hide files

What does the CI workflow check before packaging?

  1. That the tests are fast
  2. That the VERSION file matches the pushed tag
  3. That butler is the latest version
  4. That the README exists