.gitlab-ci.yml: Use CI_COMMIT_REF_NAME for doc namespace
Use CI_COMMIT_REF_NAME instead of CI_COMMIT_BRANCH since the latter is not always available depending on how the job was triggered.
Use CI_COMMIT_REF_NAME instead of CI_COMMIT_BRANCH since the latter is not always available depending on how the job was triggered.