chore(test): 新增 node 20 #87
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: Mirror | |
on: | |
push: | |
branches: | |
- master | |
- gh-pages | |
- v* | |
jobs: | |
to_gitee: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
# v2 中该项默认为 1,必须指定为 0 以拉取所有记录, | |
# 否则在 mirror 去 gitee 时会报 shallow update not allowed 错误 | |
fetch-depth: 0 | |
- uses: pixta-dev/repository-mirroring-action@v1 | |
with: | |
target_repo_url: [email protected]:fjc0k/yapi-to-typescript.git | |
ssh_private_key: ${{ secrets.GITEE_SSH_KEY }} | |
- uses: yanglbme/gitee-pages-action@main | |
with: | |
gitee-username: fjc0k | |
gitee-password: ${{ secrets.GITEE_PASSWORD }} | |
gitee-repo: fjc0k/yapi-to-typescript | |
branch: gh-pages | |
https: true |