It’s easy to host your website in GitHub Pages, you can even add a custom domain of your choice. Perfect for students and first-time entrepreneur who has a little budget and want to explore about their ideas or use as a portfolio for IT or comp-sci students.
Time needed: 5 minutes.
With just 7 steps you can create your custom websites with GitHub Pages.
- Signup to Github website
- Create repository
when creating your repository for GitHub pages use the username that you have. For example, my Github account is “raketbizdev” I create a repository like this “raketbizdev.github.io”
- Upload your static html
GitHub has a drag and drop function so I’m sure you how to upload files on the internet.
- Add custom domain
After the files being uploaded go to the settings of your repository not the settings of your profile. and look for a custom domain. Add the custom domain you bought from your registrar the click save next to it.
- Tick the enforce HTTPS
GitHub also provide free ssl certificate just tick the checkbox below custom domain
- Add CNAME Record
CNAME or Canonical Name is a type of DNS record that binds your custom domain and your hosting, this time is Github pages.
To do that you have to go to your domain registrars such as InternetBS, Godaddy, or Namecheap and go to manage domain the add your CNAME. Under DNS record select the type which is CNAME then the aliases which are like “www” or “personal” or “whatever” the TTL (time to live) select 300 for faster propagation. then enter your Github repository name mine is “raketbizdev.github.io” then click add.
Thats it and your done. Visit your website check if its working