Skip to content

Commit

Permalink
feat: create sync actions
Browse files Browse the repository at this point in the history
  • Loading branch information
yanglbme committed Mar 28, 2020
1 parent d55cb97 commit 522366e
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Sync

on:
push:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Sync to Gitee
uses: wearerequired/git-mirror-action@master
env:
SSH_PRIVATE_KEY: ${{ secrets.GITEE_RSA_PRIVATE_KEY }}
with:
source-repo: "git@github.com:doocs/coding-interview.git"
destination-repo: "git@gitee.com:Doocs/coding-interview.git"

- name: Rebuild Gitee Pages
uses: mizuka-wu/gitee-pages-action@v1.0.0
with:
repository: doocs/coding-interview
cookie: ${{ secrets.GITEE_COOKIE }}
branch: master

0 comments on commit 522366e

Please sign in to comment.