From 0608a5b8991f4c6ed6153b8868aeab72f334244e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=87=A1=E6=A2=A6=E6=98=9F=E5=B0=98?= Date: Mon, 9 May 2022 14:46:55 +0800 Subject: [PATCH] :sparkles: Add Github's action flow to sync update code to Gitee repository by automatic. --- .github/workflows/sync-2-gitee.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/sync-2-gitee.yml diff --git a/.github/workflows/sync-2-gitee.yml b/.github/workflows/sync-2-gitee.yml new file mode 100644 index 0000000..ee2814a --- /dev/null +++ b/.github/workflows/sync-2-gitee.yml @@ -0,0 +1,17 @@ +name: sync-2-gitee + +on: + push: + branches: [main] + +jobs: + sync-2-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:hugo-next/hugo-theme-next.git + destination-repo: git@gitee.com:hugo-next/hugo-theme-next.git \ No newline at end of file