Back to 9986ffd2ae
This commit is contained in:
parent
ecd26c0308
commit
f29138bb48
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue