Extending GitHub Actions to output static content
Jon Milsom • Saturday 18th September 2021
github-actions static-sitesAt work, we use GitHub Actions extensively for running test suites and building software packages. It’s awesome to have such powerful and flexible functionality integrated directly into the GitHub system.
We also use GitHub Actions to build and deploy our static marketing/sales site, using S3 to store the files. However, in addition to the initial configuration, it takes several lines of code to authenticate with AWS, re-structure the files to support folder URLs with and without trailing slashes, deploy to S3, and invalidate the CloudFront CDN cache.
When facing a similar problem at home (for this blog!) I started reading through a tutorial on configuring S3, CloudFront, and DNS for static sites and thought there must be an easier way to get static content online with minimal messing around.
Wouldn't it be great if your generated content could just appear on a URL immediately available for use?
GoStatic solves this problem. Generate your files, run the GitHub action and get a live, HTTPS URL almost instantly.
Give it a go!