fix: create GitHub Release before uploading artifacts

This commit is contained in:
Breadway 2026-06-06 23:52:34 +08:00
parent 109b11c77f
commit a9b1992598

View file

@ -56,6 +56,8 @@ jobs:
run: |
VERSION="${GITHUB_REF_NAME#v}"
PKG_DIR="${DL_DIR}/bread/${VERSION}"
gh release create "${GITHUB_REF_NAME}" \
--title "bread v${VERSION}" --generate-notes 2>/dev/null || true
gh release upload "${GITHUB_REF_NAME}" \
"${PKG_DIR}/breadd-x86_64" \
"${PKG_DIR}/bread-x86_64" \