This is an archived article and the information in the article may be outdated. Please look at the time stamp on the story to see when it was last updated.

HOUSTON (AP) — The Tampa Bay Rays and Houston Astros both had reasons to like how things turned out Friday night.

Drew Rasmussen and the Rays were the only ones celebrating, however.

Rasmussen pitched seven effective innings and the Rays clinched a playoff spot for the fourth straight season, posing on the field for a team picture after beating Houston 7-3. Despite the loss, the Astros wound up with home-field advantage throughout the AL playoffs.

The Rays (86-71) began the day in the third and final AL wild-card slot, trailing Toronto and Seattle.

Tampa Bay extended the longest postseason streak in franchise history and earned a playoff spot for the eighth time, all since 2008. The Rays have never won the World Series.

“They’ve withstood some bad news and some bad performances, but they’ve come out on top with some really good performances to stay afloat here,” Rays manager Kevin Cash said. “It feels like right now, we’re coming into our own a little bit. These guys are still young, and we’re getting a taste of some really cool stuff.”

Houston (102-55) was assured home-field advantage throughout the AL playoffs when the New York Yankees lost earlier in the day. Only the Los Angeles Dodgers have a better record than the Astros.

“It’s hard to celebrate when you feel the pain of losing,” Astros manager Dusty Baker said. “We’ll worry about that later.”

Rasmussen (11-7) held Houston to two runs and five hits in seven innings. He entered Friday riding a three-game losing streak, the longest of his career.

“I had a really bad outing against these guys the other day, so to be able to come back and attack the strike zone like I know how to and get quick outs and allow the defense to play was absolutely incredible,” Rasmussen said. “There’s a lot of excitement going into the postseason now, and we’re officially in.”

Yandy Díaz doubled and singled twice, driving in two runs and scoring two. Taylor Walls homered and scored twice for the Rays.

Tampa Bay scored three times in the sixth, taking a 6-2 lead and chasing Framber Valdez (16-6).

Valdez, who saw his MLB-record streak of 25 consecutive quality starts snapped in his previous start, had a second consecutive rough outing. In 5 1/3 innings, he allowed six runs, nine hits and three walks.

Valdez has been tagged for 10 runs in his last two starts after allowing just eight runs in the entire month of August.

“He didn’t have his breaking ball tonight too much,” Baker said. “He actually threw more fastballs than he threw breaking balls. No, I don’t have any concerns for Framber. Framber is fine.”

Former Jose Siri hit an RBI double and Díaz doubled home Siri and Walls to break it open.

Walls homered in eighth, his eighth of the season.

Tampa took a 3-2 lead in the fifth when Randy Arozarena hit an RBI triple and scored on a single by Wander Franco.

Houston took a 2-1 lead in the fourth as Yordan Alvarez led off with a double and scored on a single by Yuli Gurriel.

Gurriel hit a double in the ninth to score Alvarez.

The Rays scored first after Valdez walked the first two batters and Harold Ramirez hit an RBI single.

Alex Bregman hit his 23rd homer in the bottom of the first.

TRAINER’S ROOM

Astros: RHP Lance McCullers Jr. (illness) said he had a migraine, a fever and a “nasty bug” and lost a few pounds over the past week but threw a bullpen session Friday and is expecting to start Monday’s game against Philadelphia.

UP NEXT

Rays: Shane McClanahan (12-7, 2.51 ERA) starts for Tampa on Saturday, looking to get back on track after allowing nine runs across nine innings in two losses of his last two starts.

Astros: Cristian Javier (10-9, 2.65) will start for Houston on Saturday. He allowed just one hit in five innings in a 5-0 win at Tampa on Sept. 20.

SHARE TO CARE

As part of the typical 50/50 raffle for charity at Minute Maid Park, the Astros pledged to donate half of the proceeds to Hurricane Ian relief efforts.

WILD CARD READY

The Rays are 4-0 all-time in postseason play as a wild-card team. They won the 2013 wild-card game in Cleveland and 2019 wild-card game in Oakland, and also swept a 2020 wild-card series against Toronto.

HE SAID IT

“I’m glad I got to work my way back. … Being able to contribute now and being able to pop Champagne tonight is much more meaningful.” — Rays starter Tyler Glasnow.

___

More AP MLB: https://apnews.com/hub/MLB and https://twitter.com/AP_Sports