diff --git a/.gitlab/ci/docs.yml b/.gitlab/ci/docs.yml index 363f771d8f..b38b8adce6 100644 --- a/.gitlab/ci/docs.yml +++ b/.gitlab/ci/docs.yml @@ -144,11 +144,16 @@ build_docs_html_partial: variables: DOCS_BUILD_DIR: "${IDF_PATH}/docs/_build/" PYTHONUNBUFFERED: 1 + # ensure all tags are fetched, need to know the latest/stable tag for the docs + GIT_STRATEGY: clone + GIT_DEPTH: 0 stage: test_deploy tags: - deploy - shiny script: + # ensure all tags are fetched, need to know the latest/stable tag for the docs + - git fetch --tags --prune - add_doc_server_ssh_keys $DOCS_DEPLOY_PRIVATEKEY $DOCS_DEPLOY_SERVER $DOCS_DEPLOY_SERVER_USER - export GIT_VER=$(git describe --always ${PIPELINE_COMMIT_SHA} --) - deploy-docs