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

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay