File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -178,3 +178,15 @@ jobs:
178178 body : ${{ needs.changelog.outputs.release_body }}
179179 draft : false
180180 prerelease : ${{ needs.meta.outputs.is_prerelease == 'true' }}
181+
182+ # Mirror酱为第三方分发服务,新项目默认关闭
183+ # 若有需要请联系 Mirror酱 开通,直接自行开启是无法使用的
184+ # https://mirrorchyan.com/
185+ - name : Trigger MirrorChyanUploading
186+ if : false
187+ shell : bash
188+ run : |
189+ gh workflow run --repo $GITHUB_REPOSITORY mirrorchyan_release.yml -f tag=${{ needs.meta.outputs.tag }}
190+ gh workflow run --repo $GITHUB_REPOSITORY mirrorchyan_release_note.yml -f tag=${{ needs.meta.outputs.tag }}
191+ env :
192+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1+ # Mirror酱为第三方分发服务,新项目默认关闭
2+ # 若有需要请联系 Mirror酱 开通,直接自行开启是无法使用的
3+ # https://mirrorchyan.com/
4+
5+ name : mirrorchyan_release
6+
7+ on :
8+ workflow_dispatch :
9+ inputs :
10+ tag :
11+ default : ' '
12+ required : false
13+ # release:
14+ # types: [released]
15+
16+ jobs :
17+ mirrorchyan :
18+ runs-on : macos-latest
19+ # Mirror酱为第三方分发服务,新项目默认关闭
20+ # 若有需要请联系 Mirror酱 开通,直接自行开启是无法使用的
21+ # https://mirrorchyan.com/
22+ if : false
23+ # if: ${{ github.repository_owner == 'MaaXYZ' }}
24+ strategy :
25+ fail-fast : false
26+ matrix :
27+ os : [win, macos, linux]
28+ arch : [aarch64, x86_64]
29+ steps :
30+ - uses : MirrorChyan/uploading-action@v1
31+ with :
32+ filetype : latest-release
33+ filename : ${{ format('MaaXXX-{0}-{1}-*', matrix.os, matrix.arch) }}
34+ mirrorchyan_rid : MaaXXX
35+ tag : ${{ inputs.tag }}
36+
37+ os : ${{ matrix.os }}
38+ arch : ${{ matrix.arch }}
39+
40+ owner : MaaXYZ
41+ repo : MaaXXX
42+ github_token : ${{ secrets.GITHUB_TOKEN }}
43+ upload_token : ${{ secrets.MirrorChyanUploadToken }}
Original file line number Diff line number Diff line change 1+ # Mirror酱为第三方分发服务,新项目默认关闭
2+ # 若有需要请联系 Mirror酱 开通,直接自行开启是无法使用的
3+ # https://mirrorchyan.com/
4+
5+ name : mirrorchyan_release_note
6+
7+ on :
8+ workflow_dispatch :
9+ inputs :
10+ tag :
11+ default : ' '
12+ required : false
13+ release :
14+ types : [edited]
15+
16+ jobs :
17+ mirrorchyan :
18+ runs-on : macos-latest
19+ # Mirror酱为第三方分发服务,新项目默认关闭
20+ # 若有需要请联系 Mirror酱 开通,直接自行开启是无法使用的
21+ # https://mirrorchyan.com/
22+ if : false
23+ # if: ${{ github.repository_owner == 'MaaXYZ' }}
24+
25+ steps :
26+ - id : uploading
27+ uses : MirrorChyan/release-note-action@v1
28+ with :
29+ mirrorchyan_rid : MaaXXX
30+ version_name : ${{ inputs.tag }}
31+
32+ owner : MaaXYZ
33+ repo : MaaXXX
34+ github_token : ${{ secrets.GITHUB_TOKEN }}
35+ upload_token : ${{ secrets.MirrorChyanUploadToken }}
Original file line number Diff line number Diff line change 11{
2+ // "mirrorchyan_rid": "MaaXXX",
3+ // "mirrorchyan_multiplatform": true,
24 "controller" : [
35 {
46 "name" : " 安卓端" ,
You can’t perform that action at this time.
0 commit comments