From d594d4ccddbdfa46d803eb1386c59fb9458b49bf Mon Sep 17 00:00:00 2001 From: 2betop <2betop.cn@gmail.com> Date: Mon, 26 Oct 2020 18:39:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=AA=E9=9C=80=E8=A6=81=20clone=20=E6=9C=80?= =?UTF-8?q?=E8=BF=91=E4=B8=80=E6=AC=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy-gh-pages.sh | 2 +- deploy-npm-beta.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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