mirrorchyan #2
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
| # Mirror酱为第三方分发服务,新项目默认关闭 | |
| # 若有需要请联系 Mirror酱 开通,直接自行开启是无法使用的 | |
| # https://mirrorchyan.com/ | |
| name: mirrorchyan_release | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| tag: | |
| default: '' | |
| required: false | |
| # release: | |
| # types: [released] | |
| jobs: | |
| mirrorchyan: | |
| runs-on: macos-latest | |
| # Mirror酱为第三方分发服务,新项目默认关闭 | |
| # 若有需要请联系 Mirror酱 开通,直接自行开启是无法使用的 | |
| # https://mirrorchyan.com/ | |
| if: ${{ github.repository_owner == 'Saratoga-Official' }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [win, macos, linux] | |
| arch: [aarch64, x86_64] | |
| steps: | |
| - uses: MirrorChyan/uploading-action@v1 | |
| with: | |
| filetype: latest-release | |
| filename: ${{ format('MRA-{0}-{1}-*', matrix.os, matrix.arch) }} | |
| mirrorchyan_rid: MaaJR | |
| tag: ${{ inputs.tag }} | |
| os: ${{ matrix.os }} | |
| arch: ${{ matrix.arch }} | |
| owner: Saratoga-Official | |
| repo: MRA | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| upload_token: ${{ secrets.MirrorChyanUploadToken }} |