From b7c4609c2de8ad3dd7d40bef301c02848e10257f Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 6 Sep 2025 05:06:03 -0400 Subject: [PATCH] Fix tag push failure in build script --- build_and_push.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/build_and_push.sh b/build_and_push.sh index 6282762..cccd531 100755 --- a/build_and_push.sh +++ b/build_and_push.sh @@ -229,10 +229,12 @@ git_commit_and_push() { exit 1 fi - if git push --tags > /dev/null 2>&1; then - print_success "Pushed tags" + # Push only the new tag to avoid conflicts with existing tags + if git push origin "$NEW_VERSION" > /dev/null 2>&1; then + print_success "Pushed tag: $NEW_VERSION" else - print_warning "Failed to push tags" + print_error "Failed to push tag: $NEW_VERSION" + exit 1 fi }