From c5e19ca168f7ca1733b984e1b7d11c80f3b42453 Mon Sep 17 00:00:00 2001 From: Nicolas Godzik Date: Sun, 8 Nov 2026 18:24:27 +0100 Subject: [PATCH] Publish each release as the latest, not as a pre-release GitHub shows only a release marked Latest on the repository's page, and it never marks a pre-release so; with every 0.x release a pre-release, the page showed a count of tags and no release at all. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/release.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7369307..10058f5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,8 +2,9 @@ name: Release # A tag such as v0.1.0 makes a release: its notes are that version's section # of CHANGELOG.md, and it carries the command line built for Linux, macOS and -# Windows, with the examples it runs. While the version is 0.x the release is -# marked as a pre-release, which is what it is. +# Windows, with the examples it runs. It is a full release, not a pre-release, +# so that GitHub shows it as the latest on the repository's page; the 0.x +# version and the tag's message already say the project is young. on: push: @@ -26,9 +27,7 @@ jobs: version="${GITHUB_REF_NAME#v}" awk -v v="$version" '/^## /{p = ($2 == v)} p' CHANGELOG.md | tail -n +2 > notes.md test -s notes.md || { echo "CHANGELOG.md has no section for $version"; exit 1; } - flags="" - case "$version" in 0.*) flags="--prerelease" ;; esac - gh release create "$GITHUB_REF_NAME" --title "cellweave $GITHUB_REF_NAME" --notes-file notes.md $flags + gh release create "$GITHUB_REF_NAME" --title "cellweave $GITHUB_REF_NAME" --notes-file notes.md --latest env: GH_TOKEN: ${{ github.token }}