我使用的方案是 hexo + GitHub page 同步到自己的域名
每次 hexo deploy 之后 都需要手动在page setting
页面添加一次 my domain
这个有没有固定或者用通过脚本写入 action 中?
![]() | 1 lambdaq 2024-10-08 11:11:31 +08:00 https://docs.github.com/en/pages/configuring-a-custom-domain-for-your-github-pages-site/managing-a-custom-domain-for-your-github-pages-site add a CNAME file directly to the root of your source branch. |
![]() | 2 QUC062IzY3M1Y6dg 2024-10-08 13:20:04 +08:00 在本地的根目录下添加一个文件 `CNAME `,里面写上自定义的域名,如:`xxx.github.io`,一起上传 |
![]() | 3 makizhang 2024-10-08 14:17:40 +08:00 via Android 都能用 github pages 为啥不直接上 cf pages 就不用管域名的事了啊 |
4 deplives 2024-10-08 17:57:21 +08:00 在 source 目录下增加一个文本文件 CNAME 里面写上你的域名 然后在仓库配置里面也写上这个域名就行了 |