From 5fb547864d8f10596f9c33ff690dc1f1410dccfc Mon Sep 17 00:00:00 2001 From: Lana Begunova <70295997+lana-20@users.noreply.github.com> Date: Tue, 27 Oct 2026 18:39:18 -0700 Subject: [PATCH] Release: a tag with a pre-release part is a prerelease, never Latest gh release create had no --prerelease, so v0.1.0-rc1 would have been published as a full release and marked Latest. --- .github/workflows/release.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b2e5eac2..ca3b33a7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -124,7 +124,12 @@ jobs: - name: Create the release env: GH_TOKEN: ${{ github.token }} + # A tag with a pre-release part, v0.1.0-rc1, is a prerelease and never + # Latest: a release candidate is for checking the download a user gets, + # not for anyone to take for the release. run: | - gh release create "$GITHUB_REF_NAME" dist/* \ + pre="" + case "$GITHUB_REF_NAME" in *-*) pre="--prerelease --latest=false" ;; esac + gh release create "$GITHUB_REF_NAME" dist/* $pre \ --repo "$GITHUB_REPOSITORY" --verify-tag --title "mobium ${GITHUB_REF_NAME}" \ --notes "Prebuilt mobium for macOS, Linux and Windows, amd64 and arm64, and mobium-${GITHUB_REF_NAME#v}.mcpb, the MCP bundle for macOS and Linux. Check a download against SHA256SUMS. The macOS binaries are not notarized; see docs/SETUP.md."