script: Push both change and tag to remote

This commit is contained in:
Floyd Wang 2025-11-27 16:45:32 +08:00
parent e38f784219
commit 0b1fab5b08

View file

@ -91,12 +91,12 @@ fi
echo ""
# Step 4: Push to remote
log_step "4/4" "Pushing tag to remote"
log_info "Pushing ${BOLD}v$new_version${RESET} to origin..."
if git push origin "v$new_version"; then
log_success "Tag pushed to remote successfully"
log_step "4/4" "Pushing changes and tag to remote"
log_info "Pushing changes and ${BOLD}v$new_version${RESET} to origin..."
if git push origin HEAD && git push origin "v$new_version"; then
log_success "Changes and tag pushed to remote successfully"
else
log_error "Failed to push tag to remote"
log_error "Failed to push changes or tag to remote"
exit 1
fi
echo ""