将停止服务分开执行

This commit is contained in:
work
2025-07-08 16:23:57 +08:00
parent 4ae0502243
commit d88675cfe3

View File

@@ -9,7 +9,14 @@ env:
REPOSITORY_URL: http://deploy:123qwe123@123.58.209.87:3000/py_facebook/py_facebook.git
jobs:
StopService:
- name: Stop previous service
run: |
try {
Stop-Process -Name "python" -Force -ErrorAction SilentlyContinue
} catch {}
CD:
needs: StopService
runs-on: ${{ matrix.machine }}
defaults:
run:
@@ -44,12 +51,7 @@ jobs:
pip install -r requirements.txt
python -m playwright install
python -m playwright install-deps
# python -m playwright install msedge
- name: Stop previous service
run: |
try {
Stop-Process -Name "python" -Force -ErrorAction SilentlyContinue
} catch {}
# python -m playwright install msedge
- name: PIP LIST
run: pip list
- name: Start FastAPI server