Add Github's action flow to sync update code to Gitee repository by automatic.

This commit is contained in:
凡梦星尘 2022-05-09 14:46:55 +08:00
parent 9628ab9de1
commit 0608a5b899

17
.github/workflows/sync-2-gitee.yml vendored Normal file
View File

@ -0,0 +1,17 @@
name: sync-2-gitee
on:
push:
branches: [main]
jobs:
sync-2-gitee:
runs-on: ubuntu-latest
steps:
- 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:hugo-next/hugo-theme-next.git
destination-repo: git@gitee.com:hugo-next/hugo-theme-next.git