fix: create GitHub Release before uploading artifacts

This commit is contained in:
Breadway 2026-06-06 23:52:44 +08:00
parent d6cee01697
commit 15a45449e1

View file

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