Deploying Hugo to GitHub Pages with CI/CD

In part 1 we explored how I created a website using Hugo, now we are going to create a github action to automatically deploy the site on github pages when we create a commit. Set up of Git repositories I created 2 GitHub repositories for the project: First Repository for the hugo project emmanuel-io.github.io.hugo Second repository to host my blog as Github User page emmanuel-io.github.io You can find on a lot of articles who are using 2 differents branches of the same repository (“main” for the project, “gh_pages” for the generated static files), however I prefere to have two distinct repositories, each one dealing with a different concern. ...

June 4, 2022 · 3 min · emmanuel io

Setting up Hugo locally with Git and a theme

I needed a space to showcase my work, share ideas, and write articles — whether tutorials, reviews, editorials, or blog posts. GitHub is great for hosting code, but I wanted a space of my own online. This blog also serves as my digital portfolio. What were the options for blogging? Some popular options for getting started with a blog include: WordPress Medium Ghost Wix These platforms offer end-to-end solutions with nice features like: ...

June 4, 2022 · 2 min · emmanuel io