From f29138bb482df9506c3581be4ab2fd371d0c8a8e Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 25 Jul 2017 19:24:29 +0100 Subject: [PATCH] Back to 9986ffd2aedb29f733f3a3176b9607825b5c38e8 --- publish.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/publish.sh b/publish.sh index 1480f4c68..d5a71efb2 100755 --- a/publish.sh +++ b/publish.sh @@ -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