steps for building website hosted on GitHub
-
create io on github, html page for the project
-
link domain:
On domain host website, configure DNS point to github server and CNAME
A @ 185.199.108.153
A @ 185.199.109.153
A @ 185.199.110.153
A @ 185.199.111.153
CNAME www [projectname].github.io -
enable www.domain.com and domain.com
-
enable http and https -> check SSL/TLS Mode to see if https supported
Enforce HTTPS — Unavailable for your site because your domain is not properly configured to support HTTPS
-
打开域名提供服务商,添加DNS解析
找到DNS界面 -> 找到Record选项 -> 选择 Add Record(在DNS Record里添加 github server ip):(Type Name Value) A @ 185.199.108.153 A @ 185.199.109.153 A @ 185.199.110.153 A @ 185.199.111.153继续添加www解析
(Type Name Value) CANAME www toatoes.github.io -
等待 DNS 生效
通常需要 5 分钟到 24 小时。