Automating Hugo

#hugo #Github Actions #DevOps

Created GH workflow to publish my hugo site

After the decision was made to start using hugo for my blog notes, I wanted it to publish as automated as possible.

Github Actions to the rescue.

I have opted for two environments: dev & prod. Where all branches not called main will be deployed in the dev environment. I also opted for installation of the hugo and Dart from source directly; it turned out to give the quickest workflow executions.

The full workflow is in the Github repo, of course.

Things I want to look at in the future:

  • more caching
  • create website URLs based on the branch name
  • combine the two workflows, as they are very similar

But now first, learn more about hugo and how to use it.