ilangai commited on
Commit
67af539
·
1 Parent(s): 569e376

ci: auto-sync to Gitee on push

Browse files
Files changed (1) hide show
  1. .github/workflows/sync-gitee.yml +22 -0
.github/workflows/sync-gitee.yml ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Sync to Gitee
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ create:
7
+ tags: ['v*']
8
+
9
+ jobs:
10
+ sync:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - name: Checkout
14
+ uses: actions/checkout@v4
15
+ with:
16
+ fetch-depth: 0
17
+
18
+ - name: Push to Gitee
19
+ run: |
20
+ git remote add gitee https://${{ secrets.GITEE_USER }}:${{ secrets.GITEE_TOKEN }}@gitee.com/palmmedia/trae.git || true
21
+ git push gitee main --force
22
+ git push gitee --tags --force