From 48b4bf843c97fe61663e2f8ae6f91ee166b4c6e4 Mon Sep 17 00:00:00 2001 From: tscuite <64051240+tscuite@users.noreply.github.com> Date: Fri, 24 Dec 2021 09:13:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=9B=B4=E6=96=B0=E6=97=B6?= =?UTF-8?q?=E9=9D=99=E6=80=81=E8=B5=84=E6=BA=90=E7=9B=AE=E5=BD=95=E6=9B=BF?= =?UTF-8?q?=E6=8D=A2(resource)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 增加更新时静态资源目录替换(resource) --- .github/workflows/devops.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/devops.yml b/.github/workflows/devops.yml index ee5e1c93..912497e2 100644 --- a/.github/workflows/devops.yml +++ b/.github/workflows/devops.yml @@ -46,4 +46,6 @@ jobs: ssh-keyscan github.com >> ~/.ssh/known_hosts scp -P ${PROT} -o StrictHostKeyChecking=no -r web/dist/* ${USER}@${HOST}:${MKDIR}dist/ scp -P ${PROT} -o StrictHostKeyChecking=no -r web/ser/* ${USER}@${HOST}:${MKDIR} + ssh -p ${PROT} -o StrictHostKeyChecking=no ${USER}@${HOST} "cd ${MKDIR}resource/ && rm -rf ${MKDIR}resource/*" + scp -P ${PROT} -o StrictHostKeyChecking=no -r server/resource/* ${USER}@${HOST}:${MKDIR}resource/ ssh -p ${PROT} -o StrictHostKeyChecking=no ${USER}@${HOST} "cd ${MKDIR} && bash restart.sh > /dev/null 2>&1 &"