-
Notifications
You must be signed in to change notification settings - Fork 22
How to use a custom domain?
Thomasorus edited this page Feb 24, 2021
·
4 revisions
You're all set, everything is working and your website has amazing content. You want to go to the next step and have your own domain name. Once you've bought it, just follow the official github pages documentation to link everything together.
But there's one more step for us! Since we are deleting and rebuilding the website each time, we need to create a CNAME
file inside our build process. Fortunately everything is ready and you only have to edit a single file!
Follow these steps:
- Go to the
.github/workflows
folder. - Edit the
main.yml
file.
Now in the file, you'll notice that some lines have a #
character in front of them.
- We need to remove those
#
characters from those lines. - Replace the
mydomain.com
text with your own domain. - Save the file.
And that's all, you're all set. Next time you edit a file, everything should be working.