2020-03-28 10:22:07 +08:00
|
|
|
name: Sync
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2021-02-20 20:13:24 +08:00
|
|
|
branches: [main]
|
2020-03-28 10:22:07 +08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
2020-10-18 15:56:15 +08:00
|
|
|
if: github.repository == 'doocs/advanced-java'
|
2020-03-28 10:22:07 +08:00
|
|
|
steps:
|
2020-10-13 11:06:02 +08:00
|
|
|
- name: Sync To Gitee
|
|
|
|
uses: wearerequired/git-mirror-action@master
|
|
|
|
env:
|
2020-03-28 10:22:07 +08:00
|
|
|
SSH_PRIVATE_KEY: ${{ secrets.GITEE_RSA_PRIVATE_KEY }}
|
2020-10-13 11:06:02 +08:00
|
|
|
with:
|
|
|
|
source-repo: git@github.com:doocs/advanced-java.git
|
|
|
|
destination-repo: git@gitee.com:Doocs/advanced-java.git
|
2020-03-28 10:22:07 +08:00
|
|
|
|
2023-10-09 09:43:35 +08:00
|
|
|
- name: Build Gitee Pages
|
|
|
|
uses: yanglbme/gitee-pages-action@main
|
|
|
|
with:
|
|
|
|
gitee-username: yanglbme
|
|
|
|
gitee-password: ${{ secrets.GITEE_PASSWORD }}
|
|
|
|
gitee-repo: doocs/advanced-java
|
|
|
|
branch: main
|