Reminder: CapRover works great for self-hosting the results of an SSG now that docker supports multi-stage builds. Build in whatever image, then copy the built site directory from the builder image to a vanilla nginx image at the default static pages root.
(Also there’s Netlify, but they don’t hook up to self-hosted git apps and their deployment CLI tool is spyware.)
You can even hook CapRover up to Gitea with a webhook so it autodeploys on a push or merge to the appropriate branch.
It would be a terrible shame if GitHub deleted or suspended your whole account and all of your repositories because you accidentally published something on Pages that broke their TOS about allowed content.
Every outage is a good time to reconsider having a business relationship with Microsoft.