Deploy on GitLab Pages
Remember to add a basePath to your configuration, when deploying to GitLab pages.
image: node:latest
pages:
stage: deploy
script:
- npx hyperbook setup
- npx hyperbook build
- mkdir .public
- cp -r ./.hyperbook/out/* .public
- rm -rf public
- mv .public public
artifacts:
paths:
- public
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
Example Repository: https://gitlab.com/mikebarkmin/hyperbook-gitlab-pages