Skip to content

Commit

Permalink
chore: add sync code config
Browse files Browse the repository at this point in the history
  • Loading branch information
richard1015 committed Jan 10, 2022
1 parent 64a3ee1 commit 8bb97c7
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/sync-gitcode.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Sync to Gitcode

on:
push:
branches: [main]

jobs:
deploy-site-sync-gitcode:
runs-on: ubuntu-latest
steps:
- name: Sync to Gitcode
uses: wearerequired/git-mirror-action@master
env:
SSH_PRIVATE_KEY: ${{ secrets.GITEE_RSA_PRIVATE_KEY }}
with:
source-repo: [email protected]:jdf2e/nutui-react.git
destination-repo: [email protected]:jd/nutui-react.git
17 changes: 17 additions & 0 deletions .github/workflows/sync-gitee.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Sync to Gitee

on:
push:
branches: [main]

jobs:
deploy-site-sync-gitee:
runs-on: ubuntu-latest
steps:
- name: Sync to Gitee
uses: wearerequired/git-mirror-action@master
env:
SSH_PRIVATE_KEY: ${{ secrets.GITEE_RSA_PRIVATE_KEY }}
with:
source-repo: [email protected]:jdf2e/nutui-react.git
destination-repo: [email protected]:jd-platform-opensource/nutui-react.git

0 comments on commit 8bb97c7

Please sign in to comment.