I thought I’d share my github action which deploys this site whenever a push a new file to main. It compiles the site with hugo and the rsyncs across to the server.

This means that my workflow is:

  1. fire up neovim and write
  2. commit and push
  3. sit back and wait for the site to update

The code for the action is below. It requires a couple of secrets to be set up: