diff --git a/gitlab/functions.sh b/gitlab/functions.sh index 979ef6433a0afd54f1a7e4a686982f232ea234e3..185a9d864d1dcc6e366fe998b56e6b1444db0e2f 100644 --- a/gitlab/functions.sh +++ b/gitlab/functions.sh @@ -351,9 +351,9 @@ fi DOC_UPLOADS=() -if [[ "${IS_MASTER}" == "true" ]]; then - DOC_UPLOADS+=("${DOC_SERVER_PREFIX}/master/") -fi +# always upload documentation for all branches. Ideally this is only called +# when in master. +DOC_UPLOADS+=("${DOC_SERVER_PREFIX}/${CI_COMMIT_REF_NAME}/") if [[ -n "${CI_COMMIT_TAG}" ]]; then DOC_UPLOADS+=("${DOC_SERVER_PREFIX}/${CI_COMMIT_TAG}/")