diff --git a/.github/workflows/sync_to_gitee.yml b/.github/workflows/sync_to_gitee.yml new file mode 100644 index 000000000..df8ae6357 --- /dev/null +++ b/.github/workflows/sync_to_gitee.yml @@ -0,0 +1,17 @@ +name: Sync to Gitee on Release + +on: + release: + types: [published] + +jobs: + sync-to-gitee: + runs-on: ubuntu-22.04 + steps: + - name: Mirror to Gitee + uses: wearerequired/git-mirror-action@v1 + env: + SSH_PRIVATE_KEY: ${{ secrets.GITEE_SSH_PRIVATE_KEY }} + with: + source-repo: 'git@github.com:kmesh-net/kmesh.git' + destination-repo: 'git@gitee.com:target.repo.git'