Delete files in build dir

This commit is contained in:
Oliver Davies 2017-07-25 02:09:32 +01:00
parent c088225834
commit 27b6e16c90

View file

@ -15,8 +15,8 @@ mkdir -p $BUILD_DIR
cp -R .git $BUILD_DIR
pushd $BUILD_DIR
git checkout $TARGET_BRANCH || git checkout --orphan $TARGET_BRANCH
rm -r **/* || exit 0
popd
rm -rf ${BUILD_DIR}/**/* || exit 0
# Re-generate the site.
npm run prod