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.

Cross compatibility is key

Understanding the nuances that differs across the environments is underrated

When my kid was on a mattress, she was hesitant to move around. Later on, with the comfort of the soft surface, she was rolling around without caring about her head getting hurt or gravity.

Everything got changed when we let her crawl on the hard surface in the living room. She was getting hurt quite frequently - sometimes stepping on a toy, or hard landing on her head while rolling on the floor, or simply butting on something at her head level. Slowly, she got learned to avoid those hurting her. These days she evaluates the surfaces before taking another step.