Releases: suffixed tags (v0.1.0-alpha.1) are pre-releases
All checks were successful
Image, disk image and live ISO / iso (push) Successful in 37m46s
All checks were successful
Image, disk image and live ISO / iso (push) Successful in 37m46s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
8da036e5a0
commit
1304bc34e9
1 changed files with 4 additions and 2 deletions
|
|
@ -165,8 +165,10 @@ jobs:
|
||||||
|
|
||||||
api="$GITHUB_SERVER_URL/api/v1/repos/$GITHUB_REPOSITORY/releases"
|
api="$GITHUB_SERVER_URL/api/v1/repos/$GITHUB_REPOSITORY/releases"
|
||||||
auth=(-H "Authorization: token $TOKEN")
|
auth=(-H "Authorization: token $TOKEN")
|
||||||
id=$(jq -n --arg tag "$tag" --arg image "$IMAGE:$tag" '{tag_name: $tag, name: $tag,
|
# v1.2.3-alpha.1 and the like: a pre-release.
|
||||||
body: "Container image: `\($image)`.\nFiles are checked by SHA256SUMS."}' |
|
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)
|
curl -fsS "${auth[@]}" -H 'Content-Type: application/json' -d @- "$api" | jq -er .id)
|
||||||
for f in release/*; do
|
for f in release/*; do
|
||||||
name=${f#release/}
|
name=${f#release/}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue