ci: check docs build on non-main branches
Summary
This merge request changes the CI setup to split the docs job into two (build and publish) so that the docs build job can run on all branches.
Checklist
-
Documentation impact considered -
Manual smoke test run (if possible) -
Local-only tests run -
Assigned related ticket to reviewer
Edited by Jo MacMahon