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