mirror of
https://github.com/doocs/advanced-java.git
synced 2024-12-24 03:50:08 +08:00
60629378ad
auto deploy gitee pages using https://github.com/yanglbme/gitee-pages-action
27 lines
700 B
YAML
27 lines
700 B
YAML
name: Sync
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
if: github.repository == 'doocs/advanced-java'
|
|
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/advanced-java.git
|
|
destination-repo: git@gitee.com:Doocs/advanced-java.git
|
|
|
|
- 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
|