mirror of
https://github.com/certd/certd.git
synced 2026-04-05 07:20:56 +08:00
chore: ui-xx.zip
This commit is contained in:
2
.github/workflows/publish-atom.yaml
vendored
2
.github/workflows/publish-atom.yaml
vendored
@@ -50,7 +50,7 @@ jobs:
|
||||
id: publish_to_atomgit
|
||||
run: |
|
||||
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 }}
|
||||
pnpm install
|
||||
npm run publish_to_atomgit
|
||||
|
||||
2
.github/workflows/release-image.yml
vendored
2
.github/workflows/release-image.yml
vendored
@@ -135,7 +135,7 @@ jobs:
|
||||
id: publish_to_atomgit
|
||||
run: |
|
||||
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 }}
|
||||
pnpm install
|
||||
npm run publish_to_atomgit
|
||||
|
||||
4
packages/ui/certd-server/.gitignore
vendored
4
packages/ui/certd-server/.gitignore
vendored
@@ -22,4 +22,6 @@ run/
|
||||
tools/lego/*
|
||||
!tools/lego/readme.md
|
||||
test.mjs
|
||||
isolate-*.log
|
||||
isolate-*.log
|
||||
|
||||
ui-*.zip
|
||||
6
start.sh
6
start.sh
@@ -57,16 +57,18 @@ echo "构建完成"
|
||||
|
||||
echo "下载前端ui"
|
||||
# 如果zip有了就不下载
|
||||
if [ -f ui-$version.zip ]; then
|
||||
if [ -f ./ui-$version.zip ]; then
|
||||
echo "ui-$version.zip 已经存在,不需要下载"
|
||||
else
|
||||
echo "ui-$version.zip 不存在,开始下载"
|
||||
# 下载之前清理一下
|
||||
rm -rf ui-*.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
|
||||
fi
|
||||
# 覆盖解压缩
|
||||
unzip -o ui-$version.zip -d ./public
|
||||
unzip -o -q ui-$version.zip -d ./public
|
||||
|
||||
echo "启动服务"
|
||||
|
||||
|
||||
@@ -1 +1 @@
|
||||
6
|
||||
7
|
||||
|
||||
Reference in New Issue
Block a user