只需要 clone 最近一次

This commit is contained in:
2betop 2020-10-26 18:39:20 +08:00
parent 8d4969c84a
commit d594d4ccdd
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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