BOSTON — Another tough game for the Red Sox bullpen.

This time followed by a save from the Boston bats.

Aaron Hill sliced an RBI single in the bottom of the eighth after Tampa Bay tied it in the top half of the inning, and the Red Sox held on for an 8-6 victory over the Rays on Wednesday.

“We had to find a way to fight back again,” Manager John Farrell said after the Red Sox finished the homestand with a 3-3 record and headed to the West Coast for the first six in a nine-game trip.

Hanley Ramirez hit a fifth-inning grand slam to erase a 4-1 deficit, and Jackie Bradley Jr. added a solo shot in the sixth to give Boston a 6-4 lead. But one game after the Red Sox blew a two-run lead in the seventh, the Rays loaded the bases against Fernando Abad in the eighth and Logan Forsythe hit a two-run single off Junichi Tazawa (3-2) to tie it.

In the bottom half, Ramirez led off with a walk, Sandy Leon bunted him to second and pinch-hitter Brock Holt singled him to third. Hill followed with a single past the first baseman to score Ramirez, and Bradley hit an RBI double to make it 8-6.

“Difficult loss,” Rays Manager Kevin Cash said. “A walk here and couple of hits, then the big home run by Hanley really killed us.”

Xander Bogaerts also homered for the Red Sox, and Bradley had three hits. Dustin Pedroia had three more hits for Boston, which had lost five of its previous seven games after moving into a tie for first place in the AL East.

Pedroia has 15 hits in his last 20 at-bats and is batting .463 since moving into the leadoff spot on Aug. 10.

Erasmo Ramirez (7-10) gave up Hill’s single and an RBI double by Bradley in the eighth.

Kevin Kiermaier had three hits for the Rays, and Forsythe and Logan Morrison each homered as Tampa Bay opened a 4-1 lead through four innings.

But Boston took the lead in the fifth after Drew Smyly loaded the bases on two hits and a two-out walk. Ramirez hit the next pitch over the Green Monster for his 19th homer of the season.

Craig Kimbrel pitched the ninth for his 24th save. Farrell said his closer was not available to get a four-out save a day after throwing 22 pitches in a non-save situation just so he could get his work in. “I was not going to go with a short turnaround,” Farrell said.

Boston knuckleballer Steven Wright lasted only four innings, allowing four runs on seven hits and three walks. In two starts since coming back from a right shoulder strain, Wright has allowed nine runs on 14 hits in 19 innings.

“I felt like it was hard for me to get the same life, the same action I had pre-injury,” he said.

NOTES: Red Sox reliever Brad Ziegler was unavailable because of the flu. Farrell said he would fly on his own to the West Coast “to keep him away from others … being so contagious.”

Portland Sea Dogs infielders Yoan Moncada and Mauricio Dubon and Class A pitcher Michael Kopech are among the seven players in the Red Sox organization slated to play for the Surprise Saguaros of the Arizona Fall League, according to rosters that were released Wednesday.

Moncada, rated by Baseball America as the top prospect in the minor leagues, and Dubon will be joined by Sea Dogs left-hander Jalen Beeks.

The Saguaros’ pitching staff is headed by Kopech, a hard-throwing right-hander who has a 1.23 ERA with 81 strikeouts in 51 1/3 innings at Class A Salem. Three other Salem players – pitchers Trey Ball and Jamie Callahan and outfielder Danny Mars – are also on the roster.