From 43165089d33e63570335dc23d2586211af966022 Mon Sep 17 00:00:00 2001 From: fengjiansu Date: Wed, 29 May 2024 23:49:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4deploy?= 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 d8ca2b7..8d449ab 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -64,6 +64,12 @@ jobs: - name: Generate static files run: npm run build + - name: Clean .deploy_git directory before deploy + run: | + if [ -d ".deploy_git" ]; then + rm -rf .deploy_git + fi + - name: Deploy hexo run: | npm run deploy