Gridea一同步,邮箱就收到Github发送的邮件
邮件内容如下:
The page build completed successfully, but returned the following warning for the `main` branch:
Your CNAME file was ignored because this repository is automatically hosted from jiangling500.github.io already. See https://docs.github.com/articles/setting-up-your-pages-site-repository/
For information on troubleshooting Jekyll see:
https://docs.github.com/articles/troubleshooting-jekyll-builds
If you have any questions you can submit a request on the Contact GitHub page at https://support.github.com/contact?repo_id=325996040&page_build_id=224445559
这是因为在远程-->基础配置中有配置过 CNAME,Gridea 在同步时,会上传 CNAME 文件到 Github 上,解决办法就是不让 Gridea 上传 CNAME 文件到 Github 上。但此时即使将 CNAME 配置为空,再点同步仍然会收到邮件,这是因为 Gridea 已经生成了 CNAME 文件,每次在同步时都会将 CNAME 上传至 Github,需要将 Gridea 生成的文件全部删除。具体操作就是,点 Gridea 左下角的配置按钮,打开站点源文件路径,将 Gridea 整个文件夹删除,最好再将 github.io 仓库也删除重新创建,下次再配置远程-->基础配置时,不要配置 CNAME,保持该项为空。至此,Gridea 再同步时就不会再收到 Github 发送的邮件了。