Skip to content

Commit 2741b0c

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 16ca648 + 05b2ee7 commit 2741b0c

File tree

2 files changed

+189
-121
lines changed

2 files changed

+189
-121
lines changed

.github/workflows/sync.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Sync
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Sync to Gitee
12+
uses: wearerequired/git-mirror-action@master
13+
env:
14+
# 注意在 Settings->Secrets 配置 GITEE_RSA_PRIVATE_KEY
15+
SSH_PRIVATE_KEY: ${{ secrets.GITEE_RSA_PRIVATE_KEY }}
16+
with:
17+
# 注意替换为你的 GitHub 源仓库地址
18+
source-repo: "git@github.com:doocs/source-code-hunter.git"
19+
# 注意替换为你的 Gitee 目标仓库地址
20+
destination-repo: "git@gitee.com:Doocs/source-code-hunter.git"
21+
22+
- name: Build Gitee Pages
23+
uses: yanglbme/gitee-pages-action@master
24+
with:
25+
# 注意替换为你的 Gitee 用户名
26+
gitee-username: yanglbme
27+
# 注意在 Settings->Secrets 配置 GITEE_PASSWORD
28+
gitee-password: ${{ secrets.GITEE_PASSWORD }}
29+
# 注意替换为你的 Gitee 仓库
30+
gitee-repo: doocs/source-code-hunter

0 commit comments

Comments
 (0)