Publishing Hugo site via GitHub Actions

My blog at blog.popey.com was hosted on a Bitfolk VPS, built from the Hugo source code in a public GitHub repo.

My workflow for publishing a post goes like this:

  • 💻 Use whatever machine I’m sat at
  • 🔽 Clone the repo
  • 🗒 Add a new page, edit until ready
  • 🤠 Push directly to the main branch

Early on in my use of Hugo, I was manually using hugo and rsync over SSH directly on the VPS. Given I was publishing a post very infrequently, this process wasn’t tremendously onerous. I typically have a terminal open nearby anyway, and it’s only a couple of commands.

[Read More]