mirror of
https://github.com/doocs/advanced-java.git
synced 2025-01-15 05:30:11 +08:00
25 lines
614 B
YAML
25 lines
614 B
YAML
name: Sync
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
build:
|
|
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:doocs/advanced-java.git"
|
|
destination-repo: "git@gitee.com:Doocs/advanced-java.git"
|
|
|
|
- name: Build Gitee Pages
|
|
uses: yanglbme/gitee-pages-action@v1.0.0
|
|
with:
|
|
gitee-repo: doocs/advanced-java
|
|
gitee-login-cookie: ${{ secrets.GITEE_COOKIE }}
|
|
branch: master
|