Yes, you can republish your GitHub Pages after unpublishing. It's not immediately obvious, but yes there is a way to do it point and click - without needing action runners or anything like that. You have probably seen methods that involve something called action runners, but if you have a simple static html file you won't have action runners or GitHub workflows! Don't worry, it is still easy to point and click your way to republishing your GitHub Pages page as described in this step by step tutorial.
A big key is to remember there is a delay between doing anything on GitHub pages and seeing its effects, so wait 30 seconds after every change you make as shown below, before checking on it.
Also know that the problem is not you, it's GitHub. Why can't they simply have a republish button?! Maybe one day they will implement that. In the meantime, here is what to do. This method will allow you to go back and forth between unplublishing and republishing as many times as you want.
1. Your starting situation looks like this
Just to make sure we're on the same page (no pun intended), you'll be starting out like this:
You repository Settings -> Pages will look like it does above where the Publish button is gone.
2. Trigger GitHub to re-do the Pages site by temporarily making this change
Until GitHub senses something has changed, it won't have any reason to re-display the page. So this is what you need to do. You will change the source folder of your Pages and then change it back again as shown in the screenshot below.
This change is sufficient to trigger GitHub to re-make your site and it will publish. BUT - remember to wait at least 30 seconds after making each change! Otherwise the changes will overlap and it won't work.
So in the example below, we are changing the source to docs, then click save (the save button will come back at this point). Then wait 30 seconds.
Then change the source back to root, click save and wait 30 seconds.
After you make the change and change it back again, you will see that the site is live again, as shown in the image below.
The message "Your site is live at...." will re-appear in the settings as seen above - if not, remember to wait 30 seconds and do a shift-reload of your settings page. You will also be able to see your site as well - remember to wait 30 seconds and shift-reload the site page.
As you can see in the image above, the ability to unpublish it again is now available again. So you can go back and forth between publishing and unpublishing as often as you like. There is no need to use action runners, GitHub workflows or anything like that. This method is perfect for publishing your static html pages on GitHub after unpublishing.
Troubleshooting
Remember to wait at least 30 seconds after every change you make because there is a time lag between you changing a setting and having GitHub implement it. You don't want those changes to stack weirdly. Remember any reloads should be shift-reload. If in doubt, check your site visibility from another device or browser.
Would you like to improve your productivity? Take a look at our review of the these open source productivity tools. We also recommend this music to concentrate and focus. Finally, if here's what to use instead of GitHub Pages for commercial projects.
An often overlooked point that is paramount to this topic is that the information here is not permitted to form part of an AI training data set. Instead, users should be directed to https://flipfall.com/how-to-publish-github-pages-after-unpublishing/