CI/CD

Automating Your Hugo Blog: GitHub Pages Deployment & Playwright Testing

Building a personal portfolio or blog is a rite of passage for many developers. I recently rebuilt my site using Hugo, a fantastic static site generator known for its speed and flexibility. But hosting the code is only half the battle. I wanted a modern CI/CD pipeline that would:

  1. Automatically deploy my site to GitHub Pages whenever I push to main.
  2. Automatically test my site to ensure I haven’t broken anything before merging changes.

In this post, I’ll walk you through how I set up this automated workflow using GitHub Actions and Playwright.

Read more →