Browse Source

chore: sync gitee gitcode

richard1015 3 years ago
parent
commit
b620bd153c
2 changed files with 18 additions and 8 deletions
  1. 17 0
      .github/workflows/sync-gitcode.yml
  2. 1 8
      .github/workflows/sync-gitee-gitcode.yml

+ 17 - 0
.github/workflows/sync-gitcode.yml

@@ -0,0 +1,17 @@
+name: Sync to Gitcode
+
+on:
+  push:
+    branches: [next]
+
+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.git
+          destination-repo: git@gitcode.net:jd/nutui.git

+ 1 - 8
.github/workflows/sync-gitee-gitcode.yml

@@ -1,4 +1,4 @@
-name: Sync to Gitee、Gitcode
+name: Sync to Gitee
 
 on:
   push:
@@ -15,10 +15,3 @@ jobs:
         with:
           source-repo: git@github.com:jdf2e/nutui.git
           destination-repo: git@gitee.com:jd-platform-opensource/nutui.git
-      - 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.git
-          destination-repo: git@gitcode.net:jd/nutui.git