Browse Source

Add: .github/workflows/gitee-sync.yml

ruanshudong 2 years ago
parent
commit
0d056a9454
2 changed files with 28 additions and 1 deletions
  1. 27 0
      .github/workflows/gitee-sync.yml
  2. 1 1
      servant/protocol

+ 27 - 0
.github/workflows/gitee-sync.yml

@@ -0,0 +1,27 @@
+on:
+  push:
+    branches:
+      - master
+    tags:
+      - "*"
+
+name: Sync to Gitee
+jobs:
+  run:
+    name: Run
+    runs-on: ubuntu-latest
+    steps:
+      - name: Checkout source code
+        uses: actions/checkout@v1
+      - name: Mirror Github to Gitee
+        uses: Yikun/hub-mirror-action@v1.2
+        with:
+          src: github/TarsCloud
+          dst: gitee/TarsCloud
+          dst_key: ${{ secrets.GITEE_PRIVATE_KEY }}
+          dst_token: ${{ secrets.GITEE_TOKEN }}
+          account_type: org
+          timeout: 600
+          debug: true
+          force_update: true
+          static_list: "TarsCpp"

+ 1 - 1
servant/protocol

@@ -1 +1 @@
-Subproject commit 26283dffe67036fd3f65c1c724c387b903f253fa
+Subproject commit 2680d729c7b1023267459d72242d17c4ca0c5770