Files
tool-node/.gitea/workflows/deploy.yaml
zhaojunlong aa572b54cb
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 上。
```
2025-12-15 16:22:02 +08:00

24 lines
559 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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