Hugo Site Deployment Using Github Actions

Setting up the site through GH Actions

This is a small write up about setting up GitHub Actions to deploy Hugo site.

How I was deploying it earlier?

I used to have 2 commits for any changes.

  1. Changes to the posts
  2. HTML documents generated through hugo command

What was the problem there?

The major problem is the process involves 2 steps. Sometimes, I used to forget generating HTML docs and the changes never flow into the static site.