diff --git a/.github/workflows/sync-gitcode.yml b/.github/workflows/sync-gitcode.yml new file mode 100644 index 0000000000..82397bec16 --- /dev/null +++ b/.github/workflows/sync-gitcode.yml @@ -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: git@github.com:jdf2e/nutui-react.git + destination-repo: git@gitcode.net:jd/nutui-react.git \ No newline at end of file diff --git a/.github/workflows/sync-gitee.yml b/.github/workflows/sync-gitee.yml new file mode 100644 index 0000000000..e17440c7cf --- /dev/null +++ b/.github/workflows/sync-gitee.yml @@ -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: git@github.com:jdf2e/nutui-react.git + destination-repo: git@gitee.com:jd-platform-opensource/nutui-react.git