clean up build website script

This commit is contained in:
Sebastian McKenzie 2015-06-26 23:41:19 +01:00
parent b94118db5e
commit 34218afdae
3 changed files with 12 additions and 3 deletions

1
.gitignore vendored
View File

@ -15,3 +15,4 @@ test/core/tmp
/packages/babel-runtime/helpers/*.js
/packages/babel-runtime/regenerator/*.js
/lib
_babel.github.io

View File

@ -13,3 +13,4 @@
/vendor
/packages
/src
_babel.github.io

View File

@ -1,9 +1,16 @@
#!/bin/sh
set -e
git clone git@github.com:babel/babel.github.io.git
cd babel.github.io
ln -s .. _babel
if [ ! -d ./_babel.github.io ]; then
git clone git@github.com:babel/babel.github.io.git _babel.github.io
fi
cd _babel.github.io
if [ ! -d ./_babel ]; then
ln -s .. _babel
fi
make build
git commit -am "${TRAVIS_TAG}"
git push "https://${GH_TOKEN}@github.com/babel/babel.github.io"