This commit is contained in:
Oliver Davies 2017-07-25 19:24:29 +01:00
parent ecd26c0308
commit f29138bb48

View file

@ -6,14 +6,12 @@ SITE_ENV="prod"
REPO=`git config remote.origin.url`
SSH_REPO=${REPO/https:\/\/github.com\//git@github.com:}
SHA=`git rev-parse --verify HEAD`
BUILD_DIR=".build"
BUILD_DIR="_deploy"
# Prepare the build directory.
mkdir -p $BUILD_DIR
git clone $REPO $BUILD_DIR
pushd $BUILD_DIR
cp -R ../.git .
git checkout master || git checkout --orphan master
git pull
popd
rm -rf ${BUILD_DIR}/**/* || exit 0