When you unpublish your site, your current deployment is removed and the site will no longer be available. Any existing repository settings or content will not be affected.
Unpublishing a site does not permanently delete the site. For information on deleting a site, see "Deleting a GitHub Pages site."
- On your GitHub Enterprise Server instance, navigate to the main page of the repository.
- Under GitHub Pages, next to the Your site is live at message, click .
- In the menu that appears, select Unpublish site.
Re-enabling a site that has been unpublished
Unpublishing your GitHub Pages site removes your current deployment. To make your site available again, you can create a new deployment.
Re-enable using GitHub Actions
A successful workflow run in the repository for your site will create a new deployment. Trigger a workflow run to redeploy your site.
Re-enabling your site when publishing from a branch
- Configure your publishing source to publish from a branch of your choosing. For more information, see "Configuring a publishing source for your GitHub Pages site."
- Commit to your publishing source to create a new deployment.