Setup travis
1. Add a personal access token on github.
2. Make sure to have required "homepage" field in package.json.
e.g.
{
...
"homepage": "https://nishkalkashyap.github.io/notes",
}
3. Enable build on travis-ci, and add personal access token in environment variables.
here
4. Copy base .travis.yml fron5. Add A records of custom domain like so.
Type | Name | Value |
---|---|---|
A | [domain] | 185.199.108.153 |
A | [domain] | 185.199.109.153 |
A | [domain] | 185.199.110.153 |
A | [domain] | 185.199.111.153 |
Warning
If using a subdomain. Instead of adding A records, add a single CNAME record. e.g.
Type | Name | Value |
---|---|---|
CNAME | [subdomain] | [github-user-name].github.io |