将停止服务分开执行, 修复3

This commit is contained in:
work
2025-07-08 16:34:26 +08:00
parent 8575a4d3f9
commit 0eed2ca1dc

View File

@@ -7,12 +7,6 @@ on:
env:
DESTINATION: C:\Facebook
REPOSITORY_URL: http://deploy:123qwe123@123.58.209.87:3000/py_facebook/py_facebook.git
MACHINES: |
[
"windows-101.36.102.136",
"windows-101.36.104.175"
]
jobs:
StopService:
@@ -22,7 +16,9 @@ jobs:
shell: powershell
strategy:
matrix:
machine: ${{ fromJson(env.MACHINES) }} # 使用公共的 machines 列表
machine:
- windows-101.36.102.136
- windows-101.36.104.175
steps:
- name: Stop previous service
run: |
@@ -38,7 +34,9 @@ jobs:
shell: powershell
strategy:
matrix:
machine: ${{ fromJson(env.MACHINES) }} # 使用公共的 machines 列表
machine:
- windows-101.36.102.136
- windows-101.36.104.175
steps:
- name: 更新或clone项目
shell: powershell