Update the gitlab-pages.md documentation with a gitlab-ci.yml which supports building for all gitlab branches, but which will publish only for default branch.
The following changes are suggested:
Split the gitlab-ci.yml into two stages, build and deploy.
“build” is invoked for all branches and the built site is available in the job’s artifacts.
“deploy” is only invoked for the default branch.
I have a fork with the changes made in this commit, and can raise a PR if this is considered useful:
https://github.com/grahamjamesaddis/zola/commit/0e0dbe68b68cf52a89d8ac51c0facc7809d07530