diff --git a/.github/workflows/sync_to_gitee.yml b/.github/workflows/sync_to_gitee.yml new file mode 100644 index 00000000..3218e6a5 --- /dev/null +++ b/.github/workflows/sync_to_gitee.yml @@ -0,0 +1,23 @@ +name: Sync to Gitee + +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + sync: + runs-on: ubuntu-latest + name: Sync GitHub to Gitee + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Mirror to Gitee + uses: pixta-dev/repository-mirroring-action@v1 + with: + target_repo_url: ${{ vars.GITEE_REPO_URL }} + ssh_private_key: ${{ secrets.GITEE_SSH_PRIVATE_KEY }}