From c0f2cccd24ccb8426d3a71fc1dae31323373563b Mon Sep 17 00:00:00 2001 From: yanglbme Date: Tue, 9 Nov 2021 09:36:59 +0800 Subject: [PATCH] chore: update build.yml --- .github/workflows/build.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0c29d4d..35e8598 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -36,13 +36,18 @@ jobs: run: npm run build - name: Deploy - uses: JamesIves/github-pages-deploy-action@4.1.4 + uses: JamesIves/github-pages-deploy-action@4.1.5 with: branch: gh-pages folder: dist + sync-to-gitee: + runs-on: ubuntu-latest + if: github.repository == 'doocs/md' + needs: build-and-deploy + steps: - name: Sync to Gitee - uses: wearerequired/git-mirror-action@master + uses: wearerequired/git-mirror-action@v1 env: SSH_PRIVATE_KEY: ${{ secrets.GITEE_RSA_PRIVATE_KEY }} with: