From 1aa88b43b0211333299afa76f01cb4e9f52ae2a8 Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Sun, 28 Jun 2026 15:10:12 -0400 Subject: [PATCH] [ci] Fix release uploading --- .gitea/workflows/ci.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 19ae18b9..fd5880cf 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -124,9 +124,7 @@ jobs: -H "${AUTH}" \ -H "Content-Type: application/json" \ -d '{"tag_name":"continuous","name":"Continuous build","prerelease":true,"target_commitish":"main"}' \ - -w "\nCREATE release HTTP %{http_code}\n" \ - | tee /dev/stderr \ - | python3 -c "import sys,json;print(json.load(sys.stdin)['id'])" 2>/dev/null) || { + | python3 -c "import sys,json;print(json.load(sys.stdin)['id'])") || { echo "ERROR: failed to create release" exit 1 } @@ -136,7 +134,7 @@ jobs: curl -f -X POST "${API}/releases/${RELEASE_ID}/assets" \ -H "${AUTH}" \ -F "attachment=@${ASSET}" \ - -w "\nUPLOAD asset HTTP %{http_code}\n" || { + -w "UPLOAD asset HTTP %{http_code}\n" >&2 || { echo "ERROR: asset upload failed" exit 1 }