
Every Fire TV update used to mean the same manual routine: build a signed release, check it, attach it to a GitHub Release, then upload it to the Amazon Appstore carefully, so nothing gets sent for review by accident. With several apps, that's a lot of repeated steps, and every repeated manual step is a chance to upload the wrong file.
So we automated it. Now one version tag does the boring part, and the important decision stays with a person.
The pipeline runs on GitHub Actions in every Fire TV app repository. It starts when we push a version tag, or when we start it by hand. Then it:
A full run takes about 3.5 to 7 minutes. Our smallest app finishes in a bit under four minutes, and the biggest in under seven.
The most important rule is what the pipeline does not do. It uploads into Amazon's edit but never commits the edit, so it never submits anything for review.
Submitting stays a human step. Someone opens the console, checks the listing, the screenshots, the prices and the release notes, and only then submits. Automation is great for building and uploading files, and bad at noticing that a screenshot shows the wrong language.
Signing material and API credentials live only in the CI secret store. They are never in the repository, never in logs, never on a developer's desk in a forgotten folder.
We also make a few debuggable builds, for example to test purchases or take price screenshots. Those are never uploaded. The pipeline's content check makes this hard to get wrong: a debuggable APK simply fails the job.
The first time we tagged a brand-new app, the upload step failed with HTTP 412. Amazon's message said it couldn't create a new edit for the app in its current state.
It turns out the API can't create the first version of an app. A brand-new app needs its first APK uploaded by hand in the console. After that, later versions can go through the API.
So the path for a new app is:
The nice part is that the manual upload still uses the verified, signed file from the pipeline, not something built on a laptop.
412 can also show up for later versions. If Amazon won't open a new edit, for example because a version is still under review, the upload step fails the same way. We saw this on two apps on the same day.
The job turns red, but the signed APK and the GitHub Release were made fine. Only the last step failed. On two other apps the Amazon step went through completely.
That's worth knowing before you panic at a red job. We read the failing step first: if it's the Amazon upload with a 412, the build is fine and we just upload later, once the store will accept a new edit.