From af9181e12a6903f5613fa51d417814d02668b1a5 Mon Sep 17 00:00:00 2001 From: kangod Date: Thu, 6 Jun 2024 09:19:02 +0800 Subject: [PATCH] Update deploy.yml --- .github/workflows/deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e8041a3..befff07 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -33,8 +33,8 @@ jobs: username: ${{ secrets.SERVER_USERNAME }} key: ${{ secrets.SERVER_SSH_KEY }} script: | - cd /home/project/blog-web - git pull + cd /home/project/blog-web + git pull origin master --force /root/.node_modules/bin/pnpm install /root/.node_modules/bin/pnpm build /root/.node_modules/bin/pm2 restart blog-web