Can't disable GitHub Pages for this repository #22018
-
I recently moved to Netlify for deploying my jekyll site. I tried to disable my github pages site using these instructions, but I see this error when I select the “none” branch:
The offered link just leads back to the same instructions. How can I unpublish my github pages site? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments 5 replies
-
I’m having this same issue. In my case the repository name is still in the Does it require renaming the repository? Not sure @DavidSchirduan if yours is set up like this, as well… |
Beta Was this translation helpful? Give feedback.
-
Yup, mine’s setup the same way. I tried creating and deleting branches, but github pages just grabs whatever is set as the default branch. I don’t want to delete the repo, but I will if I have to. It’s not great that github FORCIBLY publishes my site now. |
Beta Was this translation helpful? Give feedback.
-
Hi @DavidSchirduan and @colemanm, welcome to the GitHub Support Community! GitHub Pages sites served from repositories that use the special naming scheme I’ll pass this on to the documentation team though, there should be something on this page that explains why you aren’t able to disable Pages for these specific repos on that help page. |
Beta Was this translation helpful? Give feedback.
-
Thanks @thomasshaped! I thought it might be this but didn’t want to touch the names unless it would work. I’ll rename with something else and see if I can get it working. |
Beta Was this translation helpful? Give feedback.
-
After I changed the repo name I was able to switch the github pages branch to “None” which seems to have disabled the build process. Thank you! |
Beta Was this translation helpful? Give feedback.
-
The old documentation said that to unpublish a GitHub Pages site, you had to delete the branch that was the publishing source of the Pages site. If using a user site and publishing from the master branch, you first had to set another branch as the default before deleting master. (I’ve linked to an old version of GitHub Enterprise documentation because I couldn’t find an old version of Github documentation, but the instructions were similar). I tried that and it worked. The site was unpublished and I didn’t have to rename the repo. I don’t know if this will be disabled in the future (so you really can’t unpublish a Pages site unless you delete or rename the repo), or if it’s the documentation that doesn’t cover it, but I thought I should leave a comment since you mentioned that you’ll notify the documentation team to make some changes. |
Beta Was this translation helpful? Give feedback.
-
This is definitely a bug because when I got to Settings → Pages, it says “GitHub Pages is currently disabled.” But, when I visit the home page of my project (AndyObtiva/glimmer), it says “github-pages Active”, which is clearly a contradiction. And, the irony is if I follow the link (Deployments · AndyObtiva/glimmer · GitHub), and click “View Deployment”, it gives me a 404 error, thus affirming that it is disabled. The only issue is that the home page of my project is showing “github-pages Active” when Settings/Deployment of my GitHub project show the GitHub Pages to be disabled. The project home page should now show github-pages at all given that it’s disabled or at least show it as Inactive. We shouldn’t have to rename our repository to fix this. You can call it a missing feature if you prefer not to think of it as a bug, but it is definitely a bug from a consumer’s point of view. Thank you for providing GitHub as a free open-source service in any case and I hope that you would fix this issue and keep GitHub alive! The competition does not even begin to touch it! Cheers! |
Beta Was this translation helpful? Give feedback.
-
I had the same issue and I found out, you can delete/remove your github-pages in Settings → Environments. |
Beta Was this translation helpful? Give feedback.
-
Good catch! Thank you… that fixed it!! |
Beta Was this translation helpful? Give feedback.
Hi @DavidSchirduan and @colemanm, welcome to the GitHub Support Community!
GitHub Pages sites served from repositories that use the special naming scheme
username.github.io
can’t be unpublished as it’s expected that a Pages site will be served from these repos. In order to disable Pages for these repositories you’ll need to first rename it to something else.I’ll pass this on to the documentation team though, there should be something on this page that explains why you aren’t able to disable Pages for these specific repos on that help page.