All checks were successful
Deploy Vue App / build-and-deploy (push) Successful in 8s
ci(deploy): 更新部署分支为南京公共资源交易中心 将 Gitea 工作流中的触发分支从 master 更新为南京公共资源交易中心, 以确保代码变更能够正确部署到指定环境。 ```
24 lines
583 B
YAML
24 lines
583 B
YAML
name: Deploy Vue App
|
||
|
||
# 触发条件:推送到 master 分支时执行
|
||
on:
|
||
push:
|
||
branches: ['南京公共资源交易中心']
|
||
|
||
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
|