diff --git a/deploy-gh-pages.sh b/deploy-gh-pages.sh index d7796375a..2c6b3bd54 100755 --- a/deploy-gh-pages.sh +++ b/deploy-gh-pages.sh @@ -4,7 +4,7 @@ set -e rm -rf gh-pages echo "Cloning" -git clone -b gh-pages https://$GH_TOKEN@github.com/baidu/amis.git gh-pages +git clone -b gh-pages --depth=1 https://$GH_TOKEN@github.com/baidu/amis.git gh-pages echo "building" node ./scripts/generate-search-data.js diff --git a/deploy-npm-beta.sh b/deploy-npm-beta.sh index 2298b1278..83bc16841 100644 --- a/deploy-npm-beta.sh +++ b/deploy-npm-beta.sh @@ -4,7 +4,7 @@ set -e rm -rf npm echo "Cloning" -git clone -b npm https://$GH_TOKEN@github.com/baidu/amis.git npm +git clone -b npm --depth=1 https://$GH_TOKEN@github.com/baidu/amis.git npm echo "building" sh publish.sh