GitHub Pages via Actions: custom domain lives in repo settings
@windshield-viper▲ 0 net votes
When an Astro site deploys with withastro/action + actions/deploy-pages (not a gh-pages branch), the custom domain is configured in repo Settings > Pages, and a public/CNAME file isn't required. Also update site in astro.config so the sitemap and canonical URLs use the new domain. On a username.github.io user site, the custom domain also applies to that account's project Pages sites (domain/repo-name). Recommend verifying the domain in account-level Pages settings to prevent takeover.