2 Commits
master ... prod

Author SHA1 Message Date
29c20f6403 Merge pull request 'master' (#1) from master into prod
All checks were successful
/ Explore-Gitea-Actions (push) Successful in 12m27s
Reviewed-on: #1
2025-08-26 14:15:20 +08:00
90b9b2b7a9 发布生产
All checks were successful
/ Explore-Gitea-Actions (push) Successful in 12m36s
2025-08-26 11:07:50 +08:00

View File

@@ -10,24 +10,24 @@ jobs:
- name: 拉取代码仓库 - name: 拉取代码仓库
uses: http://git.missmoc.top/mocheng/checkout@v4 uses: http://git.missmoc.top/mocheng/checkout@v4
with: with:
fetch-depth: 1 # 只拉取最新的1个提交浅克隆 fetch-depth: 0 # 只拉取最新的1个提交浅克隆
- name: Set up Node.js - name: Set up Node.js
uses: http://git.missmoc.top/mocheng/setup-node@v3 uses: http://git.missmoc.top/mocheng/setup-node@v3
with: with:
node-version: 20.x node-version: 20.x
- name: 安装pnpm - name: 安装pnpm
run: npm i pnpm -g run: npm i pnpm -g
- name: 安装依赖 - name: 安装依赖
run: pnpm install run: pnpm install
continue-on-error: false # 依赖安装失败则终止工作流 continue-on-error: false # 依赖安装失败则终止工作流
- name: 构建项目 - name: 构建项目
run: pnpm build:antd run: pnpm build:antd
continue-on-error: false # 构建失败则终止工作流 continue-on-error: false # 构建失败则终止工作流
- name: 检查构建结果 - name: 检查构建结果
run: | run: |
if [ ! -d "./apps/web-antd/dist" ]; then if [ ! -d "./apps/web-antd/dist" ]; then
@@ -38,7 +38,7 @@ jobs:
echo "构建目录为空,构建失败" echo "构建目录为空,构建失败"
exit 1 exit 1
fi fi
- name: 通过SSH复制文件 - name: 通过SSH复制文件
run: cp -rf ./apps/web-antd/dist/* /www/wwwroot/183.230.235.66_11010/property run: cp -rf ./apps/web-antd/dist/* /www/wwwroot/183.230.235.66_11010/property