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
This commit is contained in:
Laurent Demailly 2017-07-11 15:29:34 -07:00 committed by GitHub
parent 4eff4773bf
commit 301d8407c0
1 changed files with 3 additions and 5 deletions

View File

@ -23,13 +23,11 @@ else
# The directory now is /srv/jekyll inside the container # The directory now is /srv/jekyll inside the container
# TODO bake a new docker image with correct versions from bundler # TODO bake a new docker image with correct versions from bundler
PUBLIC=_static_site PUBLIC=_static_site
rm -Rf ${PUBLIC} rm -Rf ${PUBLIC} ; mkdir ${PUBLIC}
mkdir -p ${PUBLIC}
mv _site "${PUBLIC}/v-${RELEASE}"
echo "baseurl: /v-${RELEASE}" > config_override.yml echo "baseurl: /v-${RELEASE}" > config_override.yml
jekyll build --config _config.yml,config_override.yml jekyll build --config _config.yml,config_override.yml
mv _site "${PUBLIC}/v-${RELEASE}"
npm install -g firebase-tools npm install -g firebase-tools
firebase use $PROJECT_ID --non-interactive --token $FIREBASE_TOKEN firebase use $PROJECT_ID --non-interactive --token $FIREBASE_TOKEN
firebase deploy --public ${PUBLIC} --non-interactive --token $FIREBASE_TOKEN firebase deploy --public ${PUBLIC} --non-interactive --token $FIREBASE_TOKEN
fi fi