From 30309b931e8a75eb0a4dc9e45b3b31b32c04098f Mon Sep 17 00:00:00 2001 From: shizhendong Date: Thu, 13 Apr 2023 09:54:25 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20nz-gui=20=E6=89=93=E5=8C=85=E6=97=B6=20s?= =?UTF-8?q?napshot=5Ftemplate.html=20=E6=96=87=E4=BB=B6=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E6=9C=AC=E5=9C=B0=E4=B8=B4=E6=97=B6=E5=AD=98=E5=82=A8=EF=BC=8C?= =?UTF-8?q?=E5=8F=96=E6=B6=88=E4=B8=8A=E4=BC=A0=20minio?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2df9dd9e6..2cf37b8a4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -41,11 +41,11 @@ dev_build: # 编译 上传模板 - npm run build:html - mc alias set nz $MINIO_HOST $MINIO_USER $MINIO_PWD - - mc cp dist/index.html nz/depends/template/snapshot_template.html + - mkdir -p /builds/nezha/nezha-fronted/nezha-fronted/snapshot_template && cp dist/index.html /builds/nezha/nezha-fronted/nezha-fronted/snapshot_template/snapshot_template.html - npm run build - cd /builds/nezha/nezha-fronted/nezha-fronted/dist - - mc cp nz/depends/template/snapshot_template.html ./snapshot_template.html + - cp /builds/nezha/nezha-fronted/nezha-fronted/snapshot_template/snapshot_template.html ./snapshot_template.html - rm -rf nz-gui*.zip - export FILE_NAME=nz-gui-$CI_COMMIT_REF_NAME-$CI_COMMIT_SHORT_SHA.zip # 生成 git log 日志文件 @@ -90,11 +90,11 @@ rel_build: - npm run build:html - mc alias set nz $MINIO_HOST $MINIO_USER $MINIO_PWD - - mc cp dist/index.html nz/depends/template/snapshot_template.html + - mkdir -p /builds/nezha/nezha-fronted/nezha-fronted/snapshot_template && cp dist/index.html /builds/nezha/nezha-fronted/nezha-fronted/snapshot_template/snapshot_template.html - npm run build - cd /builds/nezha/nezha-fronted/nezha-fronted/dist - - mc cp nz/depends/template/snapshot_template.html ./snapshot_template.html + - cp /builds/nezha/nezha-fronted/nezha-fronted/snapshot_template/snapshot_template.html ./snapshot_template.html - zip -m nz-gui*.zip ./snapshot_template.html - mv nz-gui*.zip nz-gui-$CI_COMMIT_SHORT_SHA.zip - md5sum nz-gui-$CI_COMMIT_SHORT_SHA.zip > nz-gui-$CI_COMMIT_SHORT_SHA.zip.md5sum.txt