1
0
Fork 0
docsearch/scripts/docs/update-website
Vincent Voyer 186dfcce53
chore(deps): fix all deps (#255)
* chore(deps): fix all deps

* test
2017-12-07 12:49:06 +01:00

28 lines
539 B
Bash
Executable file

#! /usr/bin/env bash
set -ev # exit when error
if [ -z $TRAVIS_BRANCH ]; then
currentBranch=`git rev-parse --abbrev-ref HEAD`
else
currentBranch=$TRAVIS_BRANCH
fi
if [ $currentBranch != 'master' ]; then
printf "update-website: You must be on master"
exit 1
fi
VERSION=`cat package.json | json version`
set -e # exit when error
printf "\nPublish website to gh-pages\n"
cd docs
npm install
bundle install
rm -rf _site
JEKYLL_ENV=production VERSION=${VERSION} bundle exec jekyll build
cd ..
babel-node scripts/docs/gh-pages.js