ci: parse the release id correctly
ci / release (push) Successful in 1m33s

This commit is contained in:
2026-11-22 17:00:24 +01:00
parent af1e5cc98c
commit 82ffcaf783
+1 -1
View File
@@ -36,7 +36,7 @@ jobs:
api="$SERVER/api/v1/repos/$REPO"
id=$(curl -fsS -X POST "$api/releases" \
-H "Authorization: token $TOKEN" -H "Content-Type: application/json" \
-d "{\"tag_name\":\"$TAG\",\"name\":\"$TAG\"}" | sed -n 's/.*"id":\([0-9]*\).*/\1/p' | head -1)
-d "{\"tag_name\":\"$TAG\",\"name\":\"$TAG\"}" | grep -o '"id":[0-9]*' | head -1 | cut -d: -f2)
for f in dist/*; do
curl -fsS -X POST "$api/releases/$id/assets?name=$(basename "$f")" \
-H "Authorization: token $TOKEN" -F "attachment=@$f"