Sync to Gitee #38
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Sync to Gitee | |
on: | |
push: | |
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: | |
if: github.repository == 'youzan/vant' | |
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]:vant-ui/vant.git | |
# Gitee 目标仓库地址 | |
destination-repo: [email protected]:vant-contrib/vant.git |