diff --git a/.ci/deploy.sh b/.ci/deploy.sh index 32602627fb43587c2860ba190ff04e15af081465..6734463cf593d9c1d733c65563289d11bb4cbdbc 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