fix: 模板编译前更新国际化数据
This commit is contained in:
@@ -46,10 +46,11 @@ dev_build:
|
|||||||
# 更新 i18n
|
# 更新 i18n
|
||||||
- chmod +x ../ci-scripts/replaceI18nsql.sh
|
- chmod +x ../ci-scripts/replaceI18nsql.sh
|
||||||
- ../ci-scripts/replaceI18nsql.sh
|
- ../ci-scripts/replaceI18nsql.sh
|
||||||
|
- mc alias set nz $MINIO_HOST $MINIO_USER $MINIO_PWD
|
||||||
|
- mc cp /builds/nezha/nezha-fronted/nezha-fronted/src/entrance/exportHtml/i18nData.js nz/ci-cd/nz-gui/i18nData.js
|
||||||
|
|
||||||
# 编译 上传模板
|
# 编译 上传模板
|
||||||
- npm run build:html
|
- npm run build:html
|
||||||
- mc alias set nz $MINIO_HOST $MINIO_USER $MINIO_PWD
|
|
||||||
- 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
|
- 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
|
- npm run build
|
||||||
|
|||||||
Reference in New Issue
Block a user