v3.0.0 - Test release upload fix
This commit is contained in:
BIN
c-relay-3.0.0.tar.gz
Normal file
BIN
c-relay-3.0.0.tar.gz
Normal file
Binary file not shown.
@@ -372,7 +372,6 @@ upload_release_assets() {
|
|||||||
print_status "Uploading binary: $(basename "$binary_path")"
|
print_status "Uploading binary: $(basename "$binary_path")"
|
||||||
local binary_response=$(curl -s -X POST "$api_url/releases/$release_id/assets" \
|
local binary_response=$(curl -s -X POST "$api_url/releases/$release_id/assets" \
|
||||||
-H "Authorization: token $token" \
|
-H "Authorization: token $token" \
|
||||||
-H "Content-Type: application/octet-stream" \
|
|
||||||
-F "attachment=@$binary_path;filename=$(basename "$binary_path")")
|
-F "attachment=@$binary_path;filename=$(basename "$binary_path")")
|
||||||
|
|
||||||
if echo "$binary_response" | grep -q '"id"'; then
|
if echo "$binary_response" | grep -q '"id"'; then
|
||||||
@@ -387,7 +386,6 @@ upload_release_assets() {
|
|||||||
print_status "Uploading source tarball: $(basename "$tarball_path")"
|
print_status "Uploading source tarball: $(basename "$tarball_path")"
|
||||||
local tarball_response=$(curl -s -X POST "$api_url/releases/$release_id/assets" \
|
local tarball_response=$(curl -s -X POST "$api_url/releases/$release_id/assets" \
|
||||||
-H "Authorization: token $token" \
|
-H "Authorization: token $token" \
|
||||||
-H "Content-Type: application/octet-stream" \
|
|
||||||
-F "attachment=@$tarball_path;filename=$(basename "$tarball_path")")
|
-F "attachment=@$tarball_path;filename=$(basename "$tarball_path")")
|
||||||
|
|
||||||
if echo "$tarball_response" | grep -q '"id"'; then
|
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)
|
# Only increment version if explicitly requested (not just because of -r flag)
|
||||||
if [[ "$VERSION_INCREMENT_TYPE" != "patch" ]]; then
|
if [[ "$VERSION_INCREMENT_TYPE" != "patch" ]]; then
|
||||||
increment_version "$VERSION_INCREMENT_TYPE"
|
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
|
fi
|
||||||
|
|
||||||
# Create new git tag BEFORE compilation so version.h picks it up
|
# Create new git tag BEFORE compilation so version.h picks it up
|
||||||
|
|||||||
Reference in New Issue
Block a user