```
All checks were successful
Deploy Vue App / build-and-deploy (push) Successful in 9s

ci(deploy): 添加 Gitea CI/CD 部署配置文件

新增 deploy.yaml 工作流配置,用于在推送到 master 分支时自动部署 Vue 应用。
配置包含构建和部署步骤,部署目标为指定 IP 和远程目录。
工作流运行在标记为 'test' 的 runner 上。
```
This commit is contained in:
2025-12-15 16:22:02 +08:00
parent f35d4575c8
commit aa572b54cb

View File

@@ -0,0 +1,23 @@
name: Deploy Vue App
# 触发条件:推送到 master 分支时执行
on:
push:
branches: ['master']
env:
IP: 106.15.181.192
REMOTE_DIR: /www/wwwroot/tb.test.haizhiyustc.com/
jobs:
build-and-deploy:
# 运行在已注册的 runner 上(确保 runner 标签匹配,默认无标签可省略)
runs-on: [test]
steps:
# 步骤 4部署到服务器
- name: Deploy to server
run: |
cd D:\tools\tool-node
npm install
git pull
net stop tool-node
net start tool-node