From 301d8407c007446f2b092a0d9d19c1fcc11b5b51 Mon Sep 17 00:00:00 2001 From: Laurent Demailly Date: Tue, 11 Jul 2017 15:29:34 -0700 Subject: [PATCH] Fixing bug : we were pushing the previous build (#408) Had to run it twice to make it work: fixing Need to move _site after the build, not before --- scripts/build.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/scripts/build.sh b/scripts/build.sh index dadbb48568..0117d0f094 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -22,14 +22,12 @@ else set -e # The directory now is /srv/jekyll inside the container # TODO bake a new docker image with correct versions from bundler - PUBLIC=_static_site - rm -Rf ${PUBLIC} - mkdir -p ${PUBLIC} - mv _site "${PUBLIC}/v-${RELEASE}" + PUBLIC=_static_site + rm -Rf ${PUBLIC} ; mkdir ${PUBLIC} echo "baseurl: /v-${RELEASE}" > config_override.yml jekyll build --config _config.yml,config_override.yml + mv _site "${PUBLIC}/v-${RELEASE}" npm install -g firebase-tools firebase use $PROJECT_ID --non-interactive --token $FIREBASE_TOKEN firebase deploy --public ${PUBLIC} --non-interactive --token $FIREBASE_TOKEN fi -