Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions .github/workflows/release_main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,16 @@ jobs:
exit 0
fi

# Treat any version carrying a prerelease identifier (e.g. -alpha) as a pre-release.
PRERELEASE_FLAG=""
case "$NEXT" in
*-*) PRERELEASE_FLAG="--prerelease" ;;
esac

# Publish as the repo's "Latest" release rather than a GitHub
# pre-release. While in early access every promotion is an -alpha, and
# "Latest" is the signal consumers actually follow — so the newest
# promotion must own it. The overall pre-release/early-access state is
# carried by the separate `early-access` tag/release, not by flagging
# each version as a GitHub pre-release. --latest is explicit so the new
# release always takes the badge from the prior one.
gh release create "$TAG" \
--target "$GITHUB_SHA" \
--title "$TAG" \
--generate-notes \
$PRERELEASE_FLAG
--latest
echo "Published release $TAG"
Loading