Skip to content

Sync to Gitee

Sync to Gitee #1

Workflow file for this run

name: Sync to Gitee
on:
push:
branches:
- gh-pages
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
# Sync to gitee everyday
schedule:
- cron: '0 1 * * *'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Sync to Gitee
uses: wearerequired/[email protected]
env:
# 在 Settings->Secrets 配置 GITEE_RSA_PRIVATE_KEY
SSH_PRIVATE_KEY: ${{ secrets.GITEE_RSA_PRIVATE_KEY }}
with:
# GitHub 源仓库地址
source-repo: [email protected]:Moonofweisheng/uni-mini-router.git
# Gitee 目标仓库地址
destination-repo: [email protected]:Moonofweisheng/uni-mini-router.git
- name: Build Gitee Pages
uses: yanglbme/gitee-pages-action@main
with:
# 注意替换为你的 Gitee 用户名
gitee-username: Moonofweisheng
# 注意在 Settings->Secrets 配置 GITEE_PASSWORD
gitee-password: ${{ secrets.GITEE_PASSWORD }}
# 注意替换为你的 Gitee 仓库,仓库名严格区分大小写,请准确填写,否则会出错
gitee-repo: Moonofweisheng/uni-mini-router
# 要部署的分支,默认是 master,若是其他分支,则需要指定(指定的分支必须存在)
branch: gh-pages