Skip to content

Commit e54a179

Browse files
修复metadata
1 parent b4eeedf commit e54a179

2 files changed

Lines changed: 19 additions & 18 deletions

File tree

.github/cliff.toml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[remote.github]
2-
owner = "MaaXYZ"
3-
repo = "MaaPracticeBoilerplate"
2+
owner = "1bananachicken"
3+
repo = "MaaNTE"
44
#自用时换成自己的仓库owner和repo
55
#注意,本地git user需与github一致才能实现成功@
66
[changelog]
@@ -62,6 +62,11 @@ body = """
6262

6363
# 尾部
6464
footer = """
65+
## 国内下载源
66+
67+
* [已有 Mirror酱 CDK?前往 Mirror酱 高速下载](https://mirrorchyan.com/zh/projects?rid=MaaNTE)
68+
* [夸克网盘](https://pan.quark.cn/s/9eb393a6c95e?pwd=8nuf)
69+
* [百度网盘](https://pan.baidu.com/s/11QMC-aYfjfq52yco_UAwfg?pwd=tkmu)
6570
"""
6671

6772
[git]

.github/workflows/install.yml

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -236,10 +236,12 @@ jobs:
236236
name: MaaNTE-win-${{ matrix.arch }}-${{ needs.meta.outputs.tag }}-MXU
237237
path: "install-mxu"
238238

239-
release:
240-
if: ${{ needs.meta.outputs.is_release == 'true' }}
241-
needs: [meta, windows]
239+
changelog:
240+
name: Generate changelog
241+
needs: meta
242242
runs-on: ubuntu-latest
243+
outputs:
244+
release_body: ${{ steps.git-cliff.outputs.content }}
243245
steps:
244246
- name: Checkout
245247
uses: actions/checkout@v4
@@ -260,10 +262,13 @@ jobs:
260262
OUTPUT: CHANGES.md
261263
GITHUB_REPO: ${{ github.repository }}
262264

265+
release:
266+
if: ${{ needs.meta.outputs.is_release == 'true' }}
267+
needs: [meta, windows, changelog]
268+
runs-on: ubuntu-latest
269+
steps:
263270
- uses: actions/download-artifact@v4
264271
with:
265-
pattern: MaaNTE-*
266-
merge-multiple: false
267272
path: assets
268273

269274
- name: Process and package artifacts
@@ -306,22 +311,13 @@ jobs:
306311
fi
307312
done
308313
309-
- name: Release
310-
uses: softprops/action-gh-release@v3
311-
env:
312-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
314+
- uses: softprops/action-gh-release@v2.2.2
313315
with:
314316
files: assets/*
315317
tag_name: ${{ needs.meta.outputs.tag }}
316-
body: |
317-
${{ steps.git-cliff.outputs.content }}
318-
319-
[已有 Mirror酱 CDK?前往 Mirror酱 高速下载](https://mirrorchyan.com/zh/projects?rid=MaaNTE)
320-
[夸克网盘](https://pan.quark.cn/s/9eb393a6c95e?pwd=8nuf)
321-
[百度网盘](https://pan.baidu.com/s/11QMC-aYfjfq52yco_UAwfg?pwd=tkmu)
318+
body: ${{ needs.changelog.outputs.release_body }}
322319
draft: false
323320
prerelease: ${{ needs.meta.outputs.is_prerelease == 'true' }}
324-
make_latest: ${{ needs.meta.outputs.is_prerelease == 'false' }}
325321

326322
- name: Trigger MirrorChyanUploading
327323
shell: bash

0 commit comments

Comments
 (0)