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. ...