mirror of
https://github.com/certd/certd.git
synced 2026-04-24 20:57:26 +08:00
chore: ui-xx.zip
This commit is contained in:
@@ -50,7 +50,7 @@ jobs:
|
|||||||
id: publish_to_atomgit
|
id: publish_to_atomgit
|
||||||
run: |
|
run: |
|
||||||
rm -rf ./packages/ui/certd-client/dist/**/*.gz
|
rm -rf ./packages/ui/certd-client/dist/**/*.gz
|
||||||
zip -r ui.zip ./packages/ui/certd-client/dist
|
cd ./packages/ui/certd-client/dist && zip -r ../../../ui.zip .
|
||||||
export ATOMGIT_TOKEN=${{ secrets.ATOMGIT_TOKEN }}
|
export ATOMGIT_TOKEN=${{ secrets.ATOMGIT_TOKEN }}
|
||||||
pnpm install
|
pnpm install
|
||||||
npm run publish_to_atomgit
|
npm run publish_to_atomgit
|
||||||
|
|||||||
@@ -135,7 +135,7 @@ jobs:
|
|||||||
id: publish_to_atomgit
|
id: publish_to_atomgit
|
||||||
run: |
|
run: |
|
||||||
rm -rf ./packages/ui/certd-client/dist/**/*.gz
|
rm -rf ./packages/ui/certd-client/dist/**/*.gz
|
||||||
zip -r ui.zip ./packages/ui/certd-client/dist
|
cd ./packages/ui/certd-client/dist && zip -r ../../../ui.zip .
|
||||||
export ATOMGIT_TOKEN=${{ secrets.ATOMGIT_TOKEN }}
|
export ATOMGIT_TOKEN=${{ secrets.ATOMGIT_TOKEN }}
|
||||||
pnpm install
|
pnpm install
|
||||||
npm run publish_to_atomgit
|
npm run publish_to_atomgit
|
||||||
|
|||||||
@@ -22,4 +22,6 @@ run/
|
|||||||
tools/lego/*
|
tools/lego/*
|
||||||
!tools/lego/readme.md
|
!tools/lego/readme.md
|
||||||
test.mjs
|
test.mjs
|
||||||
isolate-*.log
|
isolate-*.log
|
||||||
|
|
||||||
|
ui-*.zip
|
||||||
@@ -57,16 +57,18 @@ echo "构建完成"
|
|||||||
|
|
||||||
echo "下载前端ui"
|
echo "下载前端ui"
|
||||||
# 如果zip有了就不下载
|
# 如果zip有了就不下载
|
||||||
if [ -f ui-$version.zip ]; then
|
if [ -f ./ui-$version.zip ]; then
|
||||||
echo "ui-$version.zip 已经存在,不需要下载"
|
echo "ui-$version.zip 已经存在,不需要下载"
|
||||||
else
|
else
|
||||||
|
echo "ui-$version.zip 不存在,开始下载"
|
||||||
# 下载之前清理一下
|
# 下载之前清理一下
|
||||||
rm -rf ui-*.zip
|
rm -rf ui-*.zip
|
||||||
# https://atomgit.com/certd/certd/releases/download/v1.37.16/ui-1.37.16.zip
|
# https://atomgit.com/certd/certd/releases/download/v1.37.16/ui-1.37.16.zip
|
||||||
# 判断是否下载失败
|
# 判断是否下载失败
|
||||||
wget https://atomgit.com/certd/certd/releases/download/v$version/ui-$version.zip
|
wget https://atomgit.com/certd/certd/releases/download/v$version/ui-$version.zip
|
||||||
|
fi
|
||||||
# 覆盖解压缩
|
# 覆盖解压缩
|
||||||
unzip -o ui-$version.zip -d ./public
|
unzip -o -q ui-$version.zip -d ./public
|
||||||
|
|
||||||
echo "启动服务"
|
echo "启动服务"
|
||||||
|
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
6
|
7
|
||||||
|
|||||||
Reference in New Issue
Block a user