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.
From what I understood in the documentation, public is a “magic folder” from pages point of view. if you want to have a substructure you have to build it inside the public folder, not in a separate one.
This would be down to how the pages deamon grabs the stuff, but I guess a short try will answer that question.
Also you will probably need to use the following pathes insetad of your suggestion: