Skip to content

Commit 2f2bd41

Browse files
authored
chore: update deploy.yml (doocs#2445)
1 parent b16ac71 commit 2f2bd41

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ jobs:
5959
github_token: ${{ secrets.GITHUB_TOKEN }}
6060
publish_dir: ./site
6161

62+
sync:
63+
runs-on: ubuntu-latest
64+
needs: deploy
65+
if: github.repository == 'doocs/leetcode'
66+
steps:
6267
- name: Sync to gitee.com
6368
uses: wearerequired/git-mirror-action@master
6469
env:
@@ -73,4 +78,4 @@ jobs:
7378
gitee-username: yanglbme
7479
gitee-password: ${{ secrets.GITEE_PASSWORD }}
7580
gitee-repo: doocs/leetcode
76-
branch: gh-pages
81+
branch: gh-pages

0 commit comments

Comments
 (0)