1
0
mirror of synced 2026-01-06 06:02:35 -05:00
Files
docs/content/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site.md
Kevin Heis 3b092b4cb8 Deprecate 2.22 b (#22366)
* Update enterprise-server-releases.js

* Run deprecation script

* Remove finding / managing security vulnerabilities

* remove vuln from translations

* remove more dead pages

* Restore heavily used files

* Remove 2.22 refs in tests

* Update working-with-the-npm-registry.md
2021-10-22 13:23:16 -07:00

2.5 KiB

title, intro, redirect_from, product, permissions, versions, topics, shortTitle
title intro redirect_from product permissions versions topics shortTitle
Configuring a publishing source for your GitHub Pages site If you use the default publishing source for your {% data variables.product.prodname_pages %} site, your site will publish automatically. You can also choose to publish your site from a different branch or folder.
/articles/configuring-a-publishing-source-for-github-pages/
/articles/configuring-a-publishing-source-for-your-github-pages-site
/github/working-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site
{% data reusables.gated-features.pages %} People with admin or maintainer permissions for a repository can configure a publishing source for a {% data variables.product.prodname_pages %} site.
fpt ghes ghae ghec
* * * *
Pages
Configure publishing source

For more information about publishing sources, see "About {% data variables.product.prodname_pages %}."

Choosing a publishing source

Before you configure a publishing source, make sure the branch you want to use as your publishing source already exists in your repository.

{% data reusables.pages.navigate-site-repo %} {% data reusables.repositories.sidebar-settings %} {% data reusables.pages.sidebar-pages %} 3. Under "{% data variables.product.prodname_pages %}", use the None or Branch drop-down menu and select a publishing source. Drop-down menu to select a publishing source 4. Optionally, use the drop-down menu to select a folder for your publishing source. Drop-down menu to select a folder for publishing source 5. Click Save. Button to save changes to publishing source settings

Troubleshooting publishing problems with your {% data variables.product.prodname_pages %} site

{% data reusables.pages.admin-must-push %}

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. For more information, see "Troubleshooting Jekyll build errors for {% data variables.product.prodname_pages %} sites."