mirror of https://github.com/istio/istio.io.git
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:
parent
4eff4773bf
commit
301d8407c0
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue