Field Notes: Builds & Releases
Hard-won lessons about the last mile: builds, keys, checklists and launches. The general shipping notes in Field Notes: Shipping (the stranger test, surviving broken config files, never starting with an MMO) apply too; these are the production-pipeline ones.
Automate the build in week one
The first automated build of a small project takes an afternoon. The first automated build of a two-year-old project takes weeks: undocumented editor settings, a plugin that only works on one machine, scenes missing from the build list, a manual step "everyone knows". Build from the command line (Command-Line Builds) and in CI (GitHub Actions & GameCI) while the project is small, and keep it green. A build that is always available is also what makes daily playtests possible.
Release builds come from CI and a tag, never from your working folder
Your working folder has uncommitted tweaks, local plugins and stale caches. A release build must be reproducible from a clean checkout of a tagged commit. A release script can refuse anything else; this check runs before every release build (verified with real Git):
mkdir game && cd game && git init -q
echo 'speed = 240' > tuning.txt && git add . && git commit -q -m "Release candidate"
release_check() {
if [ -n "$(git status --porcelain)" ]; then
echo "REFUSE: uncommitted changes:"; git status --porcelain | sed 's/^/ /'; return 1
fi
if ! tag=$(git describe --tags --exact-match 2>/dev/null); then
echo "REFUSE: HEAD is not tagged (release builds need a version tag)"; return 1
fi
echo "OK: building $tag from $(git rev-parse --short HEAD)"
}
echo 'speed = 999' > tuning.txt # a local experiment left behind
release_check
git restore tuning.txt
release_check
git tag -a v1.0.0 -m "1.0.0"
release_checkREFUSE: uncommitted changes:
M tuning.txt
REFUSE: HEAD is not tagged (release builds need a version tag)
OK: building v1.0.0 from ded08dd
Never commit signing keys (and plan for losing them)
Android keystores, Apple certificates, Steam build credentials and store API keys don't belong in the repository, in the build, or in a screenshot of your CI settings. Store them in a password manager and the CI secret store, keep an offline backup of the Android upload key and its passwords, and write down who can recover them. With Play App Signing a lost upload key can be reset, but it takes time; without it, a lost key means you can never update the app (Google Play & the App Store). If a secret leaks, revoke and rotate first, clean up second.
Keep a release checklist in the repository
Memory fails under launch pressure. A RELEASE_CHECKLIST.md, copied into each release's issue and ticked off, makes releases boring, which is the goal. It's also where every past mistake goes: each time something slips through, add the line that would have caught it. The Mini Project contains a complete one.
Test the build players will download
Not the build folder, not the editor: download the uploaded build from the store (itch.io app, Steam beta branch, Play internal track, TestFlight) on a clean machine or account, install it, and play the first ten minutes. Store processing, compression, missing files outside the depot mapping and case-sensitive web servers all only show up there.
Keep the previous build one click away
On Steam you can set the previous build live again on the default branch from Steamworks; on itch.io you can re-push the previous version; on Google Play a staged rollout can be halted. Know how before launch day, and keep the last good build's artifacts and symbols. Rolling back in ten minutes beats a perfect fix in two days.
Don't release on Friday (or before a holiday)
Release when you can watch crash reports and reviews for the next 48 hours and push a fix. Mid-week is the usual choice; avoid your own holidays, the store's major sales, and big releases in your genre.
Wishlists matter more than launch day
On Steam, the launch is decided by the months before it: the Coming Soon page, the demo, Next Fest, devlogs and press (Wishlists & Launch Planning). Put the store page up as soon as you have a GIF worth showing; you can always improve it later, but you can't collect wishlists retroactively.
Show the version, keep the symbols, read the crashes
Every build shows its full version string; every release uploads its debug symbols; someone reads the crash dashboard daily for the first week (Crash Reporting). Most launch-week fires are one bug hitting many players, and the crash grouping tells you which one.
Test yourself
Why should release builds come from a tagged commit on CI rather than a developer's working folder?
- CI machines are faster
- The working folder may contain uncommitted changes and local state, so the build isn't reproducible
- Tags compress the build
- Stores require CI
What does git describe --tags --exact-match do in the release check?
- Creates a tag
- Prints the tag pointing exactly at HEAD, or fails if there is none
- Lists all tags
- Pushes tags
When is the best time to automate a game's build?
- Just before launch
- In the first week, while the project is small
- Never, manual builds are safer
- After the first patch