Skip to content

Commit 68ffd0e

Browse files
committed
ci(sync): replace sync workflow with improved multi-remote sync
1 parent 898cc3c commit 68ffd0e

3 files changed

Lines changed: 39 additions & 9 deletions

File tree

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,22 @@
1-
name: Sync To Gitee
1+
name: Sync out of github
22

33
on: [push, delete, create]
44

55
jobs:
66
build:
77
runs-on: ubuntu-latest
88
steps:
9-
- name: Sync to Gitee
9+
- name: Sync to codeberg
1010
uses: wearerequired/git-mirror-action@master
1111
env:
12-
# 注意在 Settings->Secrets 配置 GITEE_RSA_PRIVATE_KEY
13-
SSH_PRIVATE_KEY: ${{ secrets.GITEE_RSA_PRIVATE_KEY }}
12+
SSH_PRIVATE_KEY: ${{ secrets.SYNC_RSA_PRIVATE_KEY }}
1413
with:
15-
# 注意替换为你的 GitHub 源仓库地址
16-
source-repo: git@github.com:RicardoRyn/Plot_figure.git
17-
# 注意替换为你的 Gitee 目标仓库地址
18-
destination-repo: git@gitee.com:RicardoRyn/Plot_figure.git
14+
source-repo: git@github.com:RicardoRyn/plotfig.git
15+
destination-repo: git@codeberg.org:RicardoRyn/plotfig.git
16+
- name: Sync to gitee
17+
uses: wearerequired/git-mirror-action@master
18+
env:
19+
SSH_PRIVATE_KEY: ${{ secrets.SYNC_RSA_PRIVATE_KEY }}
20+
with:
21+
source-repo: git@github.com:RicardoRyn/plotfig.git
22+
destination-repo: git@gitee.com:RicardoRyn/plotfig.git
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Sync to Multiple Remotes
2+
3+
on: [push, delete, create]
4+
5+
jobs:
6+
sync-codeberg:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Sync to Codeberg
10+
uses: wearerequired/git-mirror-action@v1
11+
env:
12+
SSH_PRIVATE_KEY: ${{ secrets.SYNC_RSA_PRIVATE_KEY }}
13+
with:
14+
source-repo: https://github.com/RicardoRyn/plotfig.git
15+
destination-repo: git@codeberg.org:RicardoRyn/plotfig.git
16+
17+
sync-gitee:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Sync to Gitee
21+
uses: wearerequired/git-mirror-action@v1
22+
env:
23+
SSH_PRIVATE_KEY: ${{ secrets.SYNC_RSA_PRIVATE_KEY }}
24+
with:
25+
source-repo: https://github.com/RicardoRyn/plotfig.git
26+
destination-repo: git@gitee.com:RicardoRyn/plotfig.git

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)