111
This commit is contained in:
parent
764c6e1c69
commit
84de7c1550
@ -41,11 +41,7 @@ if [ "$current_branch" = "$BRANCH_NAME" ]; then
|
|||||||
# 安装依赖并构建
|
# 安装依赖并构建
|
||||||
yarn install
|
yarn install
|
||||||
yarn build
|
yarn build
|
||||||
|
|
||||||
# 准备dist目录
|
|
||||||
mkdir -p dist
|
|
||||||
cp -r public dist/
|
|
||||||
cp -r src dist/
|
|
||||||
cp package.json dist/
|
cp package.json dist/
|
||||||
cp package-lock.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/
|
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
|
rm $PROJECT_NAME-$PROFILE_ENV.tar.gz
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user