Hey dear community,
I use gitlab-pages (on gitlab.com) to serve a website for my students as a teacher.
As long as I work on parts of the pages I would like to commit the changes to an
upcoming branch and merge to master, as soon as a section or new page is finished.
The CI for the
master branch works really well and the output goes to
public where the pages are served as expected.
However, everything in the
upcoming branch is outputted to the
test directory and I don’t know how I can access the pages there.
I looked here in the forum and in the docs but couldn’t find a hint.
Any help is welcome!
PS: here is my
mkdocs-test: image: python:latest stage: test before_script: - pip install -r requirements.txt script: - mkdocs build --strict --verbose --site-dir test artifacts: paths: - test except: - master mkdocs-deploy: image: python:latest stage: deploy before_script: - pip install -r requirements.txt script: - mkdocs build --strict --verbose artifacts: paths: - public only: - master