Skip to content

Commit ba9db8e

Browse files
ci(release): mark stable releases as GitHub's Latest release (#67910)
Co-authored-by: aj <aj@anoma.ly>
1 parent e6f9d20 commit ba9db8e

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎.github/release/publish-github-release.sh‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@ printf '%s\n' "${OPENCODE_RELEASE_NOTES:-}" > "$assets.md"
1414
if dry_run; then exit 0; fi
1515

1616
tag="v$OPENCODE_VERSION"
17-
# OpenCode 1 update paths (CLI upgrade, electron-updater, Scoop) follow GitHub's Latest release, which must stay on 1.x.
17+
# Stable releases become GitHub's Latest release; pr builds never do.
18+
latest=false
19+
if [ "$OPENCODE_CHANNEL" = latest ]; then latest=true; fi
1820
gh release view "$tag" > /dev/null 2>&1 ||
1921
gh release create "$tag" --draft --verify-tag --latest=false --title "$tag" --notes-file "$assets.md"
2022
gh release upload "$tag" "$assets"/* --clobber
21-
gh release edit "$tag" --draft=false --latest=false
23+
gh release edit "$tag" --draft=false --latest="$latest"

0 commit comments

Comments
 (0)