Github Pages is a service created by GitHub that allows publishing a website or web application by hosting it in a free GitHub repository.
In this lab, I will show you how to deploy Hugo Static Website through Github Pages in 3 ways:
This method will be suitable for anyone who wants to deploy a Website that works on the domain name: https://<github_account>.github.io
Each Github account can only create a single website with this domain name.
This method will be suitable for those who have many repositories, want to deploy many Websites work on the domain name: https://<github_account>.github.io/<repository_name>/
It is possible to deploy multiple websites on 1 Github account by adding the name of the repository to the domain name.
In this method we will go step by step to build a Multiple Pages and integrate the CI/CD workflow of Github Actions to build and deploy automatically when the developer push the code up to repository.
Website will work on domain name: https://<github_account>.github.io/<repository_name>/
It is possible to deploy multiple websites on 1 Github account by adding the name of the repository to the domain name.