From 20543f3cfa24d1b2214f969b0ae160046e07628c Mon Sep 17 00:00:00 2001 From: laurentheirendt <laurent.heirendt@uni.lu> Date: Mon, 3 Feb 2020 09:39:51 +0100 Subject: [PATCH] link to img folder --- .ci/deploy.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.ci/deploy.sh b/.ci/deploy.sh index 32602627..6734463c 100644 --- a/.ci/deploy.sh +++ b/.ci/deploy.sh @@ -31,6 +31,11 @@ do mkdir $rootDir/public/$BLADE/latest mkdir $rootDir/public/$BLADE/stable + # create img folders + mkdir $rootDir/public/img/unstable + mkdir $rootDir/public/img/latest + mkdir $rootDir/public/img/stable + # change to the blade directory to be built cd $BLADE @@ -51,6 +56,12 @@ do grunt dist mv public/* $rootDir/public/$BLADE/unstable/. + + # link to the img directory + mv $rootDir/public/$BLADE/unstable/slides/img/* $rootDir/public/img/unstable/. + rm -rf $rootDir/public/$BLADE/unstable/slides/img + ln -s $rootDir/public/img/unstable $rootDir/public/$BLADE/unstable/slides/img + echo " > unstable built for file set ${BLADE}" # build the master version into stable @@ -61,6 +72,12 @@ do git submodule update --init grunt dist mv public/* $rootDir/public/$BLADE/stable/. + + # link to the img directory + mv $rootDir/public/$BLADE/stable/slides/img/* $rootDir/public/img/stable/. + rm -rf $rootDir/public/$BLADE/stable/slides/img + ln -s $rootDir/public/img/stable $rootDir/public/$BLADE/stable/slides/img + echo " > stable built for file set ${BLADE}" # build the develop version into latest @@ -71,6 +88,12 @@ do git submodule update --init grunt dist mv public/* $rootDir/public/$BLADE/latest/. + + # link to the img directory + mv $rootDir/public/$BLADE/latest/slides/img/* $rootDir/public/img/latest/. + rm -rf $rootDir/public/$BLADE/latest/slides/img + ln -s $rootDir/public/img/latest $rootDir/public/$BLADE/latest/slides/img + echo " > latest built for file set ${BLADE}" # auto redirect file to the stable version -- GitLab