diff --git a/c-relay-3.0.0.tar.gz b/c-relay-3.0.0.tar.gz new file mode 100644 index 0000000..c97d821 Binary files /dev/null and b/c-relay-3.0.0.tar.gz differ diff --git a/increment_and_push.sh b/increment_and_push.sh index 9fe632e..ac3a51a 100755 --- a/increment_and_push.sh +++ b/increment_and_push.sh @@ -372,7 +372,6 @@ upload_release_assets() { print_status "Uploading binary: $(basename "$binary_path")" local binary_response=$(curl -s -X POST "$api_url/releases/$release_id/assets" \ -H "Authorization: token $token" \ - -H "Content-Type: application/octet-stream" \ -F "attachment=@$binary_path;filename=$(basename "$binary_path")") if echo "$binary_response" | grep -q '"id"'; then @@ -387,7 +386,6 @@ upload_release_assets() { print_status "Uploading source tarball: $(basename "$tarball_path")" local tarball_response=$(curl -s -X POST "$api_url/releases/$release_id/assets" \ -H "Authorization: token $token" \ - -H "Content-Type: application/octet-stream" \ -F "attachment=@$tarball_path;filename=$(basename "$tarball_path")") if echo "$tarball_response" | grep -q '"id"'; then @@ -465,6 +463,11 @@ main() { # Only increment version if explicitly requested (not just because of -r flag) if [[ "$VERSION_INCREMENT_TYPE" != "patch" ]]; then increment_version "$VERSION_INCREMENT_TYPE" + else + # In release mode without version increment, get current version + LATEST_TAG=$(git tag -l 'v*.*.*' | sort -V | tail -n 1 || echo "v0.0.0") + NEW_VERSION="$LATEST_TAG" + export NEW_VERSION fi # Create new git tag BEFORE compilation so version.h picks it up