You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
source-code-hunter/.github/workflows/sync.yml

27 lines
720 B

name: Sync
on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
if: github.repository == 'doocs/source-code-hunter'
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:doocs/source-code-hunter.git
destination-repo: git@gitee.com:Doocs/source-code-hunter.git
- name: Build Gitee Pages
uses: yanglbme/gitee-pages-action@main
with:
gitee-username: yanglbme
gitee-password: ${{ secrets.GITEE_PASSWORD }}
gitee-repo: doocs/source-code-hunter
branch: main