Automating Deployment to Surge.sh

Like any software engineer, I strive to be two things: cheap and lazy. That’s why I manage this site (and several others) through free hosting services such as surge.sh and a static site generator, such as Hugo. Until recently, I’ve used Surge’s CLI to deploy changes, but I’ve now switched to Github Workflows to deploy changes automagically. Here is my workflow for publishing to surge with Github Workflows: # This is a basic workflow that is manually triggered name: Publish to Surge # Controls when the action will run....

May 5, 2022 · 2 min · 285 words · Sam Burba