Deploy Hugo From Private Repository to GitHub Pages
Hugo is a nice static site generator. A common scenario is to store your website source code in a private repository and serve it on GitHub Pages. Can we leverage the github actions to automatically build and deploy the site from the private repository to GitHub Pages? The answer is absolutely yes!
Before we start, you need to have two repos (can belong to different github accounts):
- Source Repo: the repo to store
- Target Repo: host the GitHub Pages (xxx.github.io)