Skip to main content

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

There's no public API for the page itself. butler covers builds and channels, which is why your build half automated cleanly and this half won't.

What works for us is posting the edit form directly rather than driving a browser UI. The page form at /game/edit/<id> is an ordinary form with a csrf_token field, so it's a normal POST rather than an automation problem. We run that POST from inside a logged in session. We haven't tested it from a bare script carrying the cookie, so treat that part as untested.

Two things that will bite you, both learned the expensive way.

Serialise the live form and override only the field you're changing. A partial POST replaces rather than patches, so sending the description on its own can blank other fields.

Don't trust the response. We once got a clean success back and shipped a page whose entire description rendered as the word undefined. It stayed live four days, because nothing read the public page afterwards. Fetch the public URL and check your text is really in it.

Cheers, I'll see about automating this on my machine rather than one of Github's. If I end up with something usable, I'll post it here.

(1 edit)

Well, what should have been a single line of curl (if there was an API) ended up as a 700-line monstrosity that I can't reasonably maintain, so instead I'll just generate the HTML in my workflow, print it out in the step summary and paste it manually :S

WHY ARE YOU LIKE THIS itch