You can choose to allow organization members to create publicly published sites, privately published sites, both, or neither. For more information about access control for GitHub Pages sites, see "Changing the visibility of your GitHub Pages site."
If you disallow publication of GitHub Pages sites, any sites that are already published will remain published. You can manually unpublish the site. For more information, see "Unpublishing a GitHub Pages site."
-
In the upper-right corner of GitHub, select your profile photo, then click Your organizations.
-
Next to the organization, click Settings.
-
In the "Access" section of the sidebar, click Member privileges.
-
Under "Pages creation", select the visibilities you want to allow and deselect the visibilities you want to disallow.
Note
To publish a GitHub Pages site privately, your organization must use GitHub Enterprise Cloud. For more information about how you can try GitHub Enterprise Cloud for free, see "Setting up a trial of GitHub Enterprise Cloud."
-
Click Save.