BINGHAMTON, N.Y. — Ryan McMahon hit a two-run triple in the sixth inning, leading the Hartford Yard Goats to a 4-2 win Friday over the Portland Sea Dogs.

The triple by McMahon drove home Noel Cuevas and Rosell Herrera and gave the Yard Goats a 3-1 lead.

Hartford tacked on another run in the seventh when Pat Valaika hit an RBI double, bringing home Raimel Tapia.

German Marquez (8-5) pitched eight innings to earn the win, allowing seven hits and one earned run, striking out nine and walking none. Matt Carasiti retired the side in order in the ninth for his 25th save of the season.

Yoan Moncada homered for the second straight game for the Sea Dogs, giving him five home runs in 16 games since his promotion to Double-A.

Portland got its other run in the seventh on a double by Jake Romanski, an error and a groundout by Raniel Rosario.

Taylor Grover (1-1) took the loss in relief in of Jalen Beeks, who gave up one run in five innings. Beeks struck out five, walked three and allowed three hits.

The series was moved from Hartford to Binghamton because the Yard Goats’ new stadium still isn’t ready. The teams will play a doubleheader Saturday before taking four games off for the All-Star break.