v4.0.0 - Debug upload issue

This commit is contained in:
Your Name
2025-10-31 11:12:58 -04:00
parent 536c2d966c
commit b8d8cd19d3
2 changed files with 7 additions and 3 deletions

BIN
c-relay-4.0.0.tar.gz Normal file

Binary file not shown.

View File

@@ -370,14 +370,18 @@ upload_release_assets() {
# Upload binary
if [[ -f "$binary_path" ]]; then
print_status "Uploading binary: $(basename "$binary_path")"
local binary_response=$(curl -s -X POST "$api_url/releases/$release_id/assets" \
print_status "Debug: API URL: $api_url/releases/$release_id/assets"
print_status "Debug: Binary path: $binary_path"
print_status "Debug: Binary exists: $(ls -la "$binary_path" 2>/dev/null || echo "NOT FOUND")"
local binary_response=$(curl -v -X POST "$api_url/releases/$release_id/assets" \
-H "Authorization: token $token" \
-F "attachment=@$binary_path;filename=$(basename "$binary_path")")
-F "attachment=@$binary_path;filename=$(basename "$binary_path")" 2>&1)
if echo "$binary_response" | grep -q '"id"'; then
print_success "Uploaded binary successfully"
else
print_warning "Failed to upload binary: $binary_response"
print_warning "Failed to upload binary"
print_warning "Response: $binary_response"
fi
fi