Docs / Guides / GitHub Pages
GitHub Pages
you.runs-on.dev serving a GitHub Pages site, over HTTPS, via CNAME.
The record
domains/you.json
"records": { "CNAME": "you.github.io" }Replace you with your GitHub username or org, exactly as it appears in your Pages URL.
Steps
- Fork the registry and edit
domains/you.jsonto the record above. - Open a pull request. Once merged, the CNAME is synced to DNS automatically.
- In the Pages repo itself, add a file named
CNAMEat the repo root containing a single line,you.runs-on.dev. This is GitHub's own custom-domain mechanism, independent of the registry, and Pages will not serve the custom domain without it. - In the repo's Settings → Pages, the custom domain field should show
you.runs-on.dev(GitHub reads it from theCNAMEfile once pushed). Enable "Enforce HTTPS" once the certificate is issued.
Order matters less than you'd think here: the registry PR and the Pages CNAME file can land in either order, GitHub just won't issue a certificate until both point at each other.
How to tell it worked
Settings → Pages shows "DNS check successful" once GitHub confirms the CNAME. Visiting https://you.runs-on.dev should then serve the Pages site.