From bddcba7f890cbd29d00e969f3a25ccf2be886f29 Mon Sep 17 00:00:00 2001 From: Yang Libin Date: Fri, 15 Mar 2024 04:52:56 +0000 Subject: [PATCH] chore: update deploy.yml --- .github/workflows/deploy.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 78d60046b044d..ca0220b8225a9 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -59,6 +59,11 @@ jobs: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./site + sync: + runs-on: ubuntu-latest + needs: deploy + if: github.repository == 'doocs/leetcode' + steps: - name: Sync to gitee.com uses: wearerequired/git-mirror-action@master env: @@ -73,4 +78,4 @@ jobs: gitee-username: yanglbme gitee-password: ${{ secrets.GITEE_PASSWORD }} gitee-repo: doocs/leetcode - branch: gh-pages + branch: gh-pages \ No newline at end of file