Link to original article (recommended): https://gabriellazcano.com/blog/how-to-add-a-custom-domain-to-your-github-pages/
I have to admit, I was struggling with getting my Github Pages to use my custom domain. In fact is extremely easy, I have to say I have no idea why I was struggling really.
A custom domain (the provider doesn’t really matter, just make sure you can change the DNS records)
An active Github page, in the form [username].github.io or [project].github.io
Every major Domain provider has it’s own way of setting up a new DNS record, but it’s really straightforward. All you need to do is set A & CNAME records for the selected domain.
You have to add 4 A pointing to @ record from this list:
And then add a
CNAME record with the name
www pointing to your [username].github.io page