From e1bad1bcfab80517852bd121b9ce480582498241 Mon Sep 17 00:00:00 2001 From: "2569718930@qq.com" <2569718930@qq.com> Date: Tue, 26 May 2026 02:57:40 +0800 Subject: [PATCH] =?UTF-8?q?CI=20=E9=83=A8=E7=BD=B2=E9=A1=BA=E5=BA=8F?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=E5=85=88=20git=20pull=20=E5=BB=BA?= =?UTF-8?q?=E7=9B=AE=E5=BD=95=EF=BC=8C=E5=86=8D=20SCP=20=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=20.next?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6a1a5932..f6e1360a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -85,10 +85,14 @@ jobs: mkdir -p ~/.ssh echo "${{ secrets.VPS_SSH_KEY }}" > ~/.ssh/id_rsa chmod 600 ~/.ssh/id_rsa - scp -o StrictHostKeyChecking=accept-new -r frontend/.next frontend/package.json frontend/package-lock.json frontend/next.config.mjs ${{ secrets.VPS_USER }}@${{ secrets.VPS_HOST }}:/root/PolyWeather/frontend/ ssh -o StrictHostKeyChecking=accept-new ${{ secrets.VPS_USER }}@${{ secrets.VPS_HOST }} " cd /root/PolyWeather git fetch origin main && git reset --hard origin/main + mkdir -p frontend + " + scp -o StrictHostKeyChecking=accept-new -r frontend/.next frontend/package.json frontend/package-lock.json frontend/next.config.mjs ${{ secrets.VPS_USER }}@${{ secrets.VPS_HOST }}:/root/PolyWeather/frontend/ + ssh -o StrictHostKeyChecking=accept-new ${{ secrets.VPS_USER }}@${{ secrets.VPS_HOST }} " + cd /root/PolyWeather docker compose down docker compose up -d --build sleep 10