v4.0.0 - Debug upload issue
This commit is contained in:
BIN
c-relay-4.0.0.tar.gz
Normal file
BIN
c-relay-4.0.0.tar.gz
Normal file
Binary file not shown.
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user