From d88675cfe3c6b08670684944640a86e4200e77de Mon Sep 17 00:00:00 2001 From: work Date: Tue, 8 Jul 2025 16:23:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86=E5=81=9C=E6=AD=A2=E6=9C=8D=E5=8A=A1?= =?UTF-8?q?=E5=88=86=E5=BC=80=E6=89=A7=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/cd.yaml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/cd.yaml b/.gitea/workflows/cd.yaml index 7c1d308..abe0450 100644 --- a/.gitea/workflows/cd.yaml +++ b/.gitea/workflows/cd.yaml @@ -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,16 +51,11 @@ 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 timeout-minutes: 3 # 设定超时时间为 3 分钟 run: | Set-Location $env:DESTINATION - Start-Process -WindowStyle hidden -FilePath python .\main.py \ No newline at end of file + Start-Process -WindowStyle hidden -FilePath python .\main.py