Skip to content

Commit 522366e

Browse files
committed
feat: create sync actions
1 parent d55cb97 commit 522366e

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/sync.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Sync
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
13+
- name: Sync to Gitee
14+
uses: wearerequired/git-mirror-action@master
15+
env:
16+
SSH_PRIVATE_KEY: ${{ secrets.GITEE_RSA_PRIVATE_KEY }}
17+
with:
18+
source-repo: "git@github.com:doocs/coding-interview.git"
19+
destination-repo: "git@gitee.com:Doocs/coding-interview.git"
20+
21+
- name: Rebuild Gitee Pages
22+
uses: mizuka-wu/gitee-pages-action@v1.0.0
23+
with:
24+
repository: doocs/coding-interview
25+
cookie: ${{ secrets.GITEE_COOKIE }}
26+
branch: master

0 commit comments

Comments
 (0)