Skip to content

Commit ef641ce

Browse files
committed
fix(release): mark releases --latest so install.sh resolves them
Previously releases were created --prerelease, leaving releases/latest returning 404. install.sh queries that endpoint, so the install one-liner silently broke for new versions until manually promoted.
1 parent f0615b4 commit ef641ce

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,16 +68,13 @@ jobs:
6868
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6969
run: |
7070
# `build.ts` uploads via `gh release upload --clobber`, which requires
71-
# the release to already exist. Create as a prerelease if missing; the
72-
# admin can promote/edit notes after assets land.
71+
# the release to exist. --latest makes it visible to releases/latest
72+
# (what install.sh queries).
7373
if ! gh release view "${{ steps.ver.outputs.tag }}" >/dev/null 2>&1; then
74-
echo "Creating prerelease ${{ steps.ver.outputs.tag }}"
7574
gh release create "${{ steps.ver.outputs.tag }}" \
76-
--prerelease \
75+
--latest \
7776
--title "${{ steps.ver.outputs.tag }}" \
78-
--notes "Automated build for ${{ steps.ver.outputs.tag }}. Notes pending."
79-
else
80-
echo "Release ${{ steps.ver.outputs.tag }} already exists."
77+
--notes "Automated build for ${{ steps.ver.outputs.tag }}."
8178
fi
8279
8380
- name: Build all targets and upload to release

0 commit comments

Comments
 (0)