Connecting GitHub Live page to Domain - Samskrita-Bharati/zat.am GitHub Wiki
Welcome to the zat.am wiki page!
Goal : How to setup live GitHub Page and connect it to the domain.
Steps
-
Login to the Domain provider, In our case it is 'name.am'.
-
Write the code of the webpage that you want to make it live.
-
Open the GitHub and clone the zat.am repository to the Local machine.
-
copy all files and folder to the git repo we have just cloned into our machine.
-
Use Git CLI or Git GUI to add and push the git repo change we have just made.
-
After pushing the code to GitHub, go to setting page and scroll down until we get the option of GitHub Live Pages.
-
click drop down and select /root option and click save, to make it live.
-
Now we will get the hyperlink to route to our page we just made it live.
-
Search the google, custom domain GitHub IP and click the first link.
-
scroll till you find the 4 IPv4 address. copy 1st address and go to name.am account and select "Nameservers and DNS".
-
Click on DNS record toggle button, and TYPE should be A, Paste that copied address in the ANSWER field and Click ADD.
-
Repeat this steps and copy all the Address one by one.
-
after copying all the steps, go to 'Code' section of the GitHub page and create a file named 'CNAME'.
-
at Last type zat.am(example.com) to the file (without any spaces), save and visit the website.