From 771ecf72365b5e8da16ca58c4d46f309e3dd3cb4 Mon Sep 17 00:00:00 2001 From: yunyingk Date: Tue, 25 Aug 2026 16:28:39 +0800 Subject: [PATCH] Fix Gitea multipart asset upload header in CI workflow --- .github/workflows/binaries.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/binaries.yml b/.github/workflows/binaries.yml index 2d21fb3..796a17f 100644 --- a/.github/workflows/binaries.yml +++ b/.github/workflows/binaries.yml @@ -103,10 +103,10 @@ jobs: for file in dist/bin/seal-home-*; do filename=$(basename "$file") echo " Uploading ${filename} to Gitea..." - curl -s -X POST "${GITEA_HOST}/api/v1/repos/${GITEA_REPO}/releases/${RELEASE_ID}/assets?name=${filename}" \ + RESP=$(curl -s -w "\nHTTP_STATUS:%{http_code}" -X POST "${GITEA_HOST}/api/v1/repos/${GITEA_REPO}/releases/${RELEASE_ID}/assets?name=${filename}" \ -H "Authorization: token ${GITEA_TOKEN}" \ - -H "Content-Type: multipart/form-data" \ - -F "attachment=@${file}" >/dev/null 2>&1 || true + -F "attachment=@${file}") + echo " Upload response: $(echo "$RESP" | tail -n 1)" done echo "✓ Successfully published release assets to Gitea!"