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

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"