From 0f8249fc0e0583d7bb7da24ebf9160b99461fa85 Mon Sep 17 00:00:00 2001
From: laurentheirendt <laurent.heirendt@uni.lu>
Date: Thu, 9 Jul 2020 15:50:05 +0200
Subject: [PATCH] move cmd for init submodule into deploy script

---
 .ci/deploy.sh  | 3 +++
 .gitlab-ci.yml | 2 --
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/.ci/deploy.sh b/.ci/deploy.sh
index 20c30ce7..9e9515e7 100644
--- a/.ci/deploy.sh
+++ b/.ci/deploy.sh
@@ -17,6 +17,9 @@ else
     version="unstable";
 fi
 
+# build the unstable version - can be optimized
+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
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 4955f622..a01b5793 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -61,8 +61,6 @@ build:courses:
   rules:
     - if: $CI_COMMIT_BRANCH == "develop"
     - if: $CI_COMMIT_BRANCH == "master"
-  before_script:
-    - git submodule update --recursive --init
   script:
     - bash .ci/deploy.sh
   artifacts:
-- 
GitLab