BlackSnow
V2EX  ›  GitHub

请问一下 github page 如何固定自定义域名

  •  
  •   BlackSnow · Oct 8, 2024 · 1943 views
    This topic created in 607 days ago, the information mentioned may be changed or developed.

    我使用的方案是 hexo + GitHub page 同步到自己的域名

    每次 hexo deploy 之后 都需要手动在page setting 页面添加一次 my domain

    这个有没有固定或者用通过脚本写入 action 中?

    5 replies    2024-10-09 10:18:30 +08:00
    QUC062IzY3M1Y6dg
        2
    QUC062IzY3M1Y6dg  
       Oct 8, 2024
    在本地的根目录下添加一个文件 `CNAME `,里面写上自定义的域名,如:`xxx.github.io`,一起上传
    makizhang
        3
    makizhang  
       Oct 8, 2024 via Android
    都能用 github pages 为啥不直接上 cf pages 就不用管域名的事了啊
    deplives
        4
    deplives  
       Oct 8, 2024
    在 source 目录下增加一个文本文件
    CNAME

    里面写上你的域名
    然后在仓库配置里面也写上这个域名就行了
    BlackSnow
        5
    BlackSnow  
    OP
       Oct 9, 2024
    @lambdaq 感谢,好用
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2442 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 16:00 · PVG 00:00 · LAX 09:00 · JFK 12:00
    ♥ Do have faith in what you're doing.