Brett Gardner homered and Stephen Drew hit a two-run double as the New York Yankees pieced together just enough offense to overcame Rick Porcello’s career-high 13 strikeouts and beat the Boston Red Sox 3-1 on Tuesday night.

Porcello (6-12) scattered five hits over eight innings and the only earned run he allowed was Gardner’s solo homer in the eighth. He topped his previous high for strikeouts by two, but the Red Sox gave him little support at the plate, stranding seven runners.

Michael Pineda (10-8) pitched six strong innings for the Yankees, scattering four hits and striking out seven and Andrew Miller picked up his 29th save as New York evened the series at one game apiece.

Boston had a promising rally going in the eighth that quickly fizzled on an attempted double steal.

Mookie Betts led off the eighth with a single and Xander Bogaerts singled with one out, giving Boston runners at first and second for slugger David Ortiz.

Ortiz struck out in his first three at-bats and the Red Sox sent both runners. The gamble failed as Betts was called out when he slid into third and briefly lost contact with the base. Replays showed Betts telling third-base umpire Vic Carapazza that third baseman Chase Headley pushed him off the bag. The Red Sox challenged the call, which was confirmed after a video review.

Ortiz struck out for the fourth time just after the delay.

The Yankees picked up two unearned runs in the fifth after Didi Gregorius hit a grounder that got past Travis Shaw at first base. Alex Rodriguez, who led off with a single, trudged from first base to third as the ball slowly rolled down the right-field line and Gregorius reached second on Shaw’s error.

Both scored easily when Drew followed with a double that rolled all the way to the wall in left-center, giving the Yankees a 2-1 lead.

Boston had been up 1-0 since the third, when Jackie Bradley Jr. doubled and scored on Pablo Sandoval’s single to right.

(Copyright (c) 2015 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed.)

Join our Newsletter for the latest news right to your inbox