Remember to add a basePath to your configuration, when deploying to GitHub pages.
For GitHub Pages you can use the following action:
Example Repository: https://github.com/mikebarkmin/hyperbook-github-pages/
Do not forget to pick a source branch in the GitHub pages settings