Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+1)

That is a seriously well-built pipeline for a solo setup 🛠️ builds, releases and changelog all automated through butler is further than most people get.

Confirming the API half from the other side: it is not just the page that has no write route, the whole public API is a handful of read-only GETs. There is no devlog endpoint either. So you have not missed anything in the docs.

Where I would push back is on the automation boundary. Almost all of those 700 lines exist to automate a login, and that is the one step worth never automating. It is the step the bot detection is specifically there to defend, so anything that does get through is something you will be re-fixing next month. Your two-step hack is actually the right shape, you just built it as one script instead of two things with different lifetimes:

  • being logged in — a human, into a persistent browser profile, once, and again only when the session lapses
  • making the edit — automated and frequent, running inside that already-authenticated profile

Once those are separated the cookie-scraping step disappears, because nothing is handing credentials between contexts any more. It also means the fragile part runs on your machine at a cadence of roughly never, instead of on every push.

Seconding CSAF on not trusting the response, and I would add the other half of it: check the form before you POST, not only the page after. I blanked a cover image on one of my own forms recently with a mis-aimed click, and nothing in the UI said a word — the only thing that caught it was reading the field back out of the form and finding it empty before submitting. A clean response only tells you the POST faithfully saved whatever it was given, including the wrong thing.

The cheapest genuinely useful piece of this needs no session at all: fetch the public page and grep it for a marker your changelog already emits. No cookies, no csrf, no bot check, and it runs fine from Actions. That alone would have caught a four-day undefined. Worth keeping even if you stay on manual paste, which is a perfectly sane place to stop — manual paste has exactly the same failure mode, it just fails quietly.

Does the HTML your workflow generates carry a version or date string anywhere? If it does, that verification step is about five lines and the auth problem never touches it.

Good point on grepping for the version after publishing - that is indeed a part of my changelog (I follow this format, so it converts to HTML nicely), and my release workflow is aware of the version being published already.

And you're right, I don't have to handle everything in a single script. I suppose  I could extract the token once locally and then use it via Playwright in my CD as a repository secret, updated once it breaks. However, I'm also considering skipping the CD for itch altogether - still script the upload and form update but run it entirely on my machine instead.