mirror of
https://github.com/ZiuChen/ZiuChen.github.io.git
synced 2025-08-17 23:19:55 +08:00
feat: 由workflow自动镜像
This commit is contained in:
parent
3eca9b2544
commit
92028c6393
25
.github/workflows/blank.yml
vendored
25
.github/workflows/blank.yml
vendored
@ -41,25 +41,24 @@ jobs:
|
|||||||
- name: Build VuePress site
|
- name: Build VuePress site
|
||||||
run: pnpm docs:build
|
run: pnpm docs:build
|
||||||
|
|
||||||
- name: Deploy
|
- name: Deploy Github Pages
|
||||||
uses: JamesIves/github-pages-deploy-action@releases/v4
|
uses: JamesIves/github-pages-deploy-action@releases/v4
|
||||||
with:
|
with:
|
||||||
folder: docs/.vuepress/dist
|
folder: docs/.vuepress/dist
|
||||||
branch: gh-pages
|
branch: gh-pages
|
||||||
# ssh-key: ${{ secrets.DEPLOY_PRIVATE_KEY }}
|
|
||||||
|
|
||||||
# - name: Sync to Gitee
|
- name: Sync to Gitee
|
||||||
# uses: wearerequired/git-mirror-action@master
|
uses: wearerequired/git-mirror-action@master
|
||||||
# env:
|
env:
|
||||||
# # 注意在 Settings->Secrets 配置 GITEE_RSA_PRIVATE_KEY
|
# 注意在 Settings->Secrets 配置 GITEE_RSA_PRIVATE_KEY
|
||||||
# SSH_PRIVATE_KEY: ${{ secrets.GITEE_RSA_PRIVATE_KEY }}
|
SSH_PRIVATE_KEY: ${{ secrets.GITEE_RSA_PRIVATE_KEY }}
|
||||||
# with:
|
with:
|
||||||
# # 注意替换为你的 GitHub 源仓库地址
|
# 注意替换为你的 GitHub 源仓库地址
|
||||||
# source-repo: git@github.com:doocs/leetcode.git
|
source-repo: git@github.com:ZiuChen/ZiuChen.github.io.git
|
||||||
# # 注意替换为你的 Gitee 目标仓库地址
|
# 注意替换为你的 Gitee 目标仓库地址
|
||||||
# destination-repo: git@gitee.com:Doocs/leetcode.git
|
destination-repo: git@gitee.com:ZiuChen/ZiuChen.git
|
||||||
|
|
||||||
- name: Build Gitee Pages
|
- name: Deploy Gitee Pages
|
||||||
uses: yanglbme/gitee-pages-action@main
|
uses: yanglbme/gitee-pages-action@main
|
||||||
with:
|
with:
|
||||||
# 注意替换为你的 Gitee 用户名
|
# 注意替换为你的 Gitee 用户名
|
||||||
|
Loading…
x
Reference in New Issue
Block a user