diff --git a/compile.sh b/compile.sh index 6fc7271..cdce1da 100755 --- a/compile.sh +++ b/compile.sh @@ -41,11 +41,7 @@ if [ "$current_branch" = "$BRANCH_NAME" ]; then # 安装依赖并构建 yarn install yarn build - - # 准备dist目录 - mkdir -p dist - cp -r public dist/ - cp -r src dist/ + cp package.json dist/ cp package-lock.json dist/ @@ -65,5 +61,5 @@ echo "upload to nexus at $(date)" | tee -a $LOGFILE curl -u 'admin':'YZ9Gq6=8\*G|?:,' --upload-file $PROJECT_NAME-$PROFILE_ENV.tar.gz https://repo.qikongjian.com/repository/frontend-tar-files/ # 清理构建文件 -rm -rf dist +#rm -rf dist rm $PROJECT_NAME-$PROFILE_ENV.tar.gz