From 8bb97c7eaaac6760734d413ff6063a26552ae593 Mon Sep 17 00:00:00 2001 From: richard1015 <51844712@qq.com> Date: Mon, 10 Jan 2022 09:35:02 +0800 Subject: [PATCH] chore: add sync code config --- .github/workflows/sync-gitcode.yml | 17 +++++++++++++++++ .github/workflows/sync-gitee.yml | 17 +++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 .github/workflows/sync-gitcode.yml create mode 100644 .github/workflows/sync-gitee.yml 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