diff --git a/gitlab/deploy.sh b/gitlab/deploy.sh
index a2eed0e75308d68fbce512d7da2b51a9039085cf..cc1cfb5e9437dab22d2e2a76aa2dbe87c318833e 100755
--- a/gitlab/deploy.sh
+++ b/gitlab/deploy.sh
@@ -23,6 +23,9 @@ setup_deploy check sdist --formats zip upload --repository production
 if [ -d sphinx ]; then
   log_info "Uploading documentation to ${PYPISERVER} on behalf of ${PYPIUSER}..."
   setup_deploy upload_docs --upload-dir sphinx --repository production
+  run_cmd $(dirname ${0})/before_docs.sh
+  run_cmd $(dirname ${0})/docs.sh
+  run_cmd $(dirname ${0})/after_docs.sh
 fi
 
 unlock_pypirc