Skip to content

Commit 5412c40

Browse files
authored
ci: 加入Mirror酱CI,默认关闭
1 parent 8aaa07e commit 5412c40

4 files changed

Lines changed: 92 additions & 0 deletions

File tree

.github/workflows/install.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff 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 }}
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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 }}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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 }}

assets/interface.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
2+
// "mirrorchyan_rid": "MaaXXX",
3+
// "mirrorchyan_multiplatform": true,
24
"controller": [
35
{
46
"name": "安卓端",

0 commit comments

Comments
 (0)