有关发布源的更多信息,请参阅“关于 GitHub Pages”。
选择发布源
Before you configure a publishing source, make sure the branch you want to use as your publishing source already exists in your repository.
-
在 GitHub 上,导航到站点的仓库。
-
在仓库名称下,单击 Settings(设置)。

-
在“GitHub Pages”下,使用 None(无)或 Branch(分支)下拉菜单选择发布源。

-
(可选)使用下拉菜单选择发布源的文件夹。

-
单击 Save(保存)。

GitHub Pages 站点发布问题疑难排解
Note: If your site has not published automatically, make sure someone with admin permissions and a verified email address has pushed to the publishing source.
If you choose the docs folder on any branch as your publishing source, then later remove the /docs folder from that branch in your repository, your site won't build and you'll get a page build error message for a missing /docs folder. 更多信息请参阅“关于 GitHub Pages 站点的 Jekyll 构建错误疑难排解”。