Fix tag push failure in build script

This commit is contained in:
Your Name
2025-09-06 05:06:03 -04:00
parent 7f69367666
commit b7c4609c2d

View File

@@ -229,10 +229,12 @@ git_commit_and_push() {
exit 1 exit 1
fi fi
if git push --tags > /dev/null 2>&1; then # Push only the new tag to avoid conflicts with existing tags
print_success "Pushed tags" if git push origin "$NEW_VERSION" > /dev/null 2>&1; then
print_success "Pushed tag: $NEW_VERSION"
else else
print_warning "Failed to push tags" print_error "Failed to push tag: $NEW_VERSION"
exit 1
fi fi
} }