Skip to content

Ask HN: GitHub push to master = zip up repo, upload to S3

1 point_gd3l1 comment
On HN

I'm looking to do pretty much what the title says.

I'm using a PHP auto-updater for a WordPress plugin, and what I can do is simply update a JSON file remotely and everyone with the plugin will get an update to install the new upgrade. Pretty sweet.

To streamline things, though, I'd like to be able to simply have the JSON file be update automatically; this means that every time there's a new push to master on GitHub, that code will be zipped and uploaded to S3; then that S3 link will be updated in the JSON file.

Comments

I think git hooks are the way to go here.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.