diff --git a/.ci/deploy.sh b/.ci/deploy.sh
index cf2904ae6c8cc4ebf641d61f926eb2e805eb6a98..0b5f59443eb5558a7da206252701eb21442df285 100644
--- a/.ci/deploy.sh
+++ b/.ci/deploy.sh
@@ -17,6 +17,10 @@ else
     version="unstable";
 fi
 
+# build the unstable version - can be optimized
+git config submodule.theme.url https://$CI_DEPLOY_USER:$CI_DEPLOY_PASSWORD@git-r3lab.uni.lu/R3-core/outreach/theme.git
+git submodule update --recursive --init
+
 # add matomo
 sed -i "/matomohead/r./.ci/analytics/head.html" theme/templates/_index.html
 sed -i "/matomopolicy/r./.ci/analytics/policy.html" theme/templates/_index.html
@@ -43,9 +47,7 @@ do
                 # change to the blade directory to be built
                 cd $BLADE
 
-                # build the unstable version - can be optimized
-                git config submodule.theme.url https://$CI_DEPLOY_USER:$CI_DEPLOY_PASSWORD@git-r3lab.uni.lu/R3-core/outreach/theme.git
-                git submodule update --recursive --init
+
 
                 # run contribute
                 cp ../../template/Gruntfile.coffee .