Sync Release to Gitee #300
This file contains hidden or 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 Release to Gitee | |
| on: | |
| workflow_dispatch: | |
| jobs: | |
| sync-release-to-gitee: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 60 | |
| env: | |
| GITEE_TOKEN: ${{ secrets.GITEE_TOKEN }} | |
| GH_TOKEN: ${{ github.token }} | |
| # 如需跳过大文件上传,打开并设置阈值: | |
| # SYNC_LINK_ONLY: true | |
| # 若仅想跳过大于阈值(MiB)的文件,可改用如下设置(默认16): | |
| # SYNC_LINK_THRESHOLD_MB: '16' | |
| # 如需不中断整个任务,即便单个上传失败: | |
| # SYNC_CONTINUE_ON_UPLOAD_ERROR: true | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Sync to Gitee | |
| run: | | |
| pip3 install PyGitHub | |
| python3 .github/sync.py |