From 1304bc34e9ab1aea3415b14b8c0f9898fd9ca565 Mon Sep 17 00:00:00 2001 From: Philip Peterson <1326208+philip-peterson@users.noreply.github.com> Date: Mon, 2 Nov 2026 14:59:25 -0900 Subject: [PATCH] Releases: suffixed tags (v0.1.0-alpha.1) are pre-releases Co-Authored-By: Claude Opus 5.5 --- .forgejo/workflows/iso.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/iso.yml b/.forgejo/workflows/iso.yml index 82ec3e2..a76a9f7 100644 --- a/.forgejo/workflows/iso.yml +++ b/.forgejo/workflows/iso.yml @@ -165,8 +165,10 @@ jobs: api="$GITHUB_SERVER_URL/api/v1/repos/$GITHUB_REPOSITORY/releases" auth=(-H "Authorization: token $TOKEN") - id=$(jq -n --arg tag "$tag" --arg image "$IMAGE:$tag" '{tag_name: $tag, name: $tag, - body: "Container image: `\($image)`.\nFiles are checked by SHA256SUMS."}' | + # v1.2.3-alpha.1 and the like: a pre-release. + pre=false; [[ $tag != *-* ]] || pre=true + id=$(jq -n --arg tag "$tag" --arg image "$IMAGE:$tag" --argjson pre "$pre" '{tag_name: $tag, name: $tag, + prerelease: $pre, body: "Container image: `\($image)`.\nFiles are checked by SHA256SUMS."}' | curl -fsS "${auth[@]}" -H 'Content-Type: application/json' -d @- "$api" | jq -er .id) for f in release/*; do name=${f#release/}