Fix Gitea multipart asset upload header in CI workflow

This commit is contained in:
gitea committed 2026-08-25 16:28:39 +08:00
1 parent 887d7f0a74
commit 4f63025a38
1 file changed
+3 -3
+3 -3
View File
@@ -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!"