DEV Community

Cover image for Instant URLs for Static Sites - via GitHub Actions
jonmilsom
jonmilsom

Posted on

1

Instant URLs for Static Sites - via GitHub Actions

Hi all,

This is my first post in dev.to :)

Background

I've been using GitHub Actions extensively at work and on personal projects for running test suites, but also for previewing and deploying static sites.

I found configuring S3 and CloudFront each time a real pain; there are so many options to choose from and so many settings that need to be correct in order to use S3 to host a static site, it just felt slow. It's also a pain to get "pretty" folder URLs working e.g. /my-page/ to load /my-page/index.html

I also looked at other options (e.g. Netlify), but these seemed overkill for what I wanted (an instant, purely static deployment).

Solution

So this is what I've come up with.... https://www.gostaticapp.com/ - Instant URLs for Static Sites

This allows you to deploy from a GitHub action, or directly via cURL.

Your output files are uploaded and a URL is provided in seconds.

If you have triggered the GitHub action to run on a Pull Request, it will add a comment to the PR with the URL.

Future updates

  • Right now URLs are ephemeral and last for 3 days before being deleted
  • I intend to support permanent URLs and custom domains in the near future

Article - Deploying Jigsaw CMS

https://www.gostaticapp.com/jigsaw-github-action

GitHub action

https://github.com/marketplace/actions/gostatic-deploy

I'm keen to hear any feedback...!

Sentry image

Make it make sense

Make sense of fixing your code with straight-forward application monitoring.

Start debugging →

Top comments (0)

👋 Kindness is contagious

Value this insightful article and join the thriving DEV Community. Developers of every skill level are encouraged to contribute and expand our collective knowledge.

A simple “thank you” can uplift someone’s spirits. Leave your appreciation in the comments!

On DEV, exchanging expertise lightens our path and reinforces our bonds. Enjoyed the read? A quick note of thanks to the author means a lot.

Okay