About publishing sources
Your GitHub Pages site will publish whenever changes are pushed to a specific branch. You can specify which branch and folder to use as your publishing source. The source branch can be any branch in your repository, and the source folder can either be the root of the repository (/
) on the source branch or a /docs
folder on the source branch. Whenever changes are pushed to the source branch, the changes in the source folder will be published to your GitHub Pages site.
Aviso: GitHub Pages sites are visible to all enterprise members, even if the repository for the site is private. If you have sensitive data in your site's repository, you may want to remove the data before publishing. Para obter mais informações, consulte "Sobre repositórios".
Publishing from a branch
-
Make sure the branch you want to use as your publishing source already exists in your repository.
-
Em GitHub AE, acesse o repositório do seu site.
-
No nome do seu repositório, clique em Configurações.
-
Na barra lateral esquerda, clique em Pages (Páginas).
-
Em "GitHub Pages", use o menu suspenso Nenhum ou Branch e selecione uma fonte de publicação.
-
Opcionalmente, use o menu suspenso para selecionar uma pasta para sua fonte de publicação.
-
Clique em Salvar.
Troubleshooting publishing from a branch
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.
Se você escolher a pasta docs
em qualquer branch como fonte de publicação e, em seguida, remover a pasta /docs
desse branch do repositório, seu site não vai criar e você receberá uma mensagem de erro de criação de página para uma pasta /docs
que está faltando. Para obter informações, consulte Solucionar problemas de erros de criação do Jekyll para sites do GitHub Pages".