You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
其它:可修改 README.md,加上官方提供的 badge:[](https://github.com/reuixiy/io-oi.me/actions)
复制
.github文件夹修改
.github/workflows/build.yml,GIT_REPO和GIT_BRANCH生成
id_rsa和id_rsa.pubssh-keygen -t rsa -b 4096 -C "reuixiy@users.noreply.github.com"id_rsa的内容复制,添加到源码仓库的 Settings > Secrets > New secret,Name 必须为GIT_DEPLOY_KEY;id_ras_pub的内容复制,添加到部署仓库的 Settings > Deploy keys > Add deploy key,Title 随便,可以为GitHub Pages,务必勾选 Allow write access。往
static文件夹下添加一个CNAME文件,里面加上自己的域名,如io-oi.mehttps://docs.github.com/en/github/working-with-github-pages/managing-a-custom-domain-for-your-github-pages-site#configuring-an-apex-domain
git add & git commit & git push
前往部署仓库,Settings > Options > GitHub Pages,将 Source 中的 Branch 选择为
GIT_BRANCH前往域名提供商,修改 DNS 记录,减少第三方 #87 (comment)
返回部署仓库,将 Enforce HTTPS 勾选
其它:可修改 README.md,加上官方提供的 badge:
[](https://github.com/reuixiy/io-oi.me/actions)脚注:对于 GitHub Pages,一个是用户的 GitHub Pages,仓库名必须为
<user>.github.io;一个项目的 GitHub Pages,将会部署到http(s)://<user>.github.io/<repository>。https://docs.github.com/en/github/working-with-github-pages/about-github-pages#types-of-github-pages-sites