Setup personal website with Github page and custom domain.
Refer this post Creating and Hosting a Personal Site on GitHub to create a repository on github and publish it to GitHub Pages.
For demo purpose, I will use the repository of my personal website, see https://github.com/bamr87/bamr87.github.io.
Visit https://www.godaddy.com, register account and search domains.
Add the domain you’re interested into shopping cart, and prepare to pay for it.
After you finish the payment, congratulations, you own the domain!

Now, it’s time to setup DNS for your new domain. Add A record to point the new domain(eg. bamr87.github.io) to a specific IP. The below four IP addresses are for GitHub Pages.
In addition, add CNAME record to point the new domain(eg. bamr87.github.io) to the existing github page domain(eg. bamr87.github.io).

Go to the github repository. In Settings, input the custom domain and check ‘Enforce HTTPS’.

The settings on GitHub and GoDaddy will be activated after a while. Visit the website with new domain bamr87.github.io. Notice that the url always starts with https.
Portfolio page.
