Skip to content

Commit 7926de9

Browse files
committed
Upload installer artifacts to existing releases
1 parent 6aa8758 commit 7926de9

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

‎.github/workflows/release-builds.yml‎

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,19 @@ jobs:
4343
with:
4444
path: installers
4545
merge-multiple: true
46+
- name: Ensure release exists
47+
env:
48+
GH_TOKEN: ${{ github.token }}
49+
TAG: ${{ github.ref_name }}
50+
run: |
51+
gh release view "$TAG" --repo "$GITHUB_REPOSITORY" >/dev/null 2>&1 || \
52+
gh release create "$TAG" --repo "$GITHUB_REPOSITORY" \
53+
--title "Python 符文纪事 $TAG" \
54+
--notes "32 关、160 道知识试炼的 Python 教学像素 RPG。macOS DMG 将在本地签名、公证服务恢复后补充发布。"
4655
- env:
4756
GH_TOKEN: ${{ github.token }}
4857
TAG: ${{ github.ref_name }}
4958
run: |
50-
gh release create "$TAG" installers/* \
59+
gh release upload "$TAG" installers/* \
5160
--repo "$GITHUB_REPOSITORY" \
52-
--title "Python 符文纪事 $TAG" \
53-
--notes "32 关、160 道题目的 Python 教学像素 RPG。下载 macOS DMG、Windows EXE、Ubuntu DEB 和 Linux RPM。macOS 安装包由研发者另行签名、公证并上传。"
61+
--clobber

0 commit comments

Comments
 (0)