diff --git a/publish.sh b/publish.sh index 1480f4c6..d5a71efb 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