From 827be05159d26652f76c9db1c9d0a936696d5246 Mon Sep 17 00:00:00 2001 From: kiccer <1072907338@qq.com> Date: Fri, 5 Apr 2024 19:17:52 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=8E=20ci:=20workflow=20test?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 2748e1f..c6f97b2 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -30,6 +30,12 @@ jobs: - name: Build run: pnpm run build + # 部署前清空旧的部署 + - name: Cleanup old deployment + run: | + git worktree prune + rm -rf .git/worktrees/github-pages-deploy-action-temp-deployment-folder/ + - name: Deploy uses: JamesIves/github-pages-deploy-action@4.1.5 with: