SAN FRANCISCO — It started with beer. Then came the condiments.

Mustard. Ketchup. Hot sauce. Japanese barbecue sauce. By the time Matt Gage emerged from the beer shower and condiment flurry to celebrate his first major league win, his eyes burned and he reeked of sauce.

Gage, though, had no reason to complain; he never even thought this moment would ever arrive.

“It’s just an amazing experience because I didn’t think I’d ever be in this position,” Gage said after Wednesday’s 5-0 win over the Philadelphia Phillies. “Being released in 2018, and then now coming back and getting my first win. I’ve had small stints with other teams and I was maybe on the hook for one or two, but never got it. Now, having an actual decision next to my name other than a loss is a lot of fun.”

Gage entered for starter Tyler Mahle in the top of the sixth with one on and two out, tasked with facing the left-handed hitting Brandon Marsh. With the count at 1-2, Gage elevated a four-seam fastball that Marsh couldn’t touch, stranding the runner and maintaining the scoreless tie.

When Rafael Devers hit a go-ahead, three-run home run in the bottom half of the frame, Gage instantly realized he was in line for the first win of his career.

“It was like, ‘Now go out, get your job done. I probably have only two hitters, so go attack them,’” Gage said.

Gage retired the first batter he faced in the top of the seventh, then was pulled by manager Tony Vitello after allowing a single to Otto Kemp. Right-hander Caleb Kilian, Gage’s replacement, made things interesting after walking Trea Turner, but Kilian rebounded by striking out Kyle Schwarber and getting Bryce Harper to ground out and end the threat.

Right-hander Blade Tidwell followed up Kilian by pitching a scoreless eighth, then left-hander Erik Miller secured the first win of Gage’s career with a scoreless ninth. Gage’s host family from his time in the Cape Cod League was in attendance, making the trip out to San Francisco from the East Coast.

“I think he’s getting his just due,” Vitello said at the start of his postgame press conference. “I know everybody’s excited for him because he’s a guy from day one, you could tell is such a good hang. That presence kind of carries over in the game. Literally good with any situation. I know if he’s available, there’s a great chance he’s going to throw somewhere in there. It’s just a matter of where we see fit, but he got a big out for us.”

This milestone would’ve still been meaningful for Gage if he had achieved it with any other team, but the moment was especially significant because he got to experience it with the Giants.

Gage, 33, was drafted by the Giants in the 10th round of the 2014 MLB draft (Logan Webb was drafted in the fourth round). He spent five seasons in the organization before being released, setting him off on a long and winding road that saw him pitch in independent ball and the Mexican League.

The left-hander signed a minor league contract with the Giants last July after being designated for assignment by the Detroit Tigers and experienced his first extended run of being on a major league roster. All told, Gage posted a 3.19 ERA with 27 strikeouts over 31 combined innings with the Giants and Tigers. This spring, he earned his first-ever spot on an Opening Day roster.

“I was really surprised I didn’t cry just because it was my first Opening Day,” Gage said of getting the news. “My heart was beating out of my chest. But during the national anthem and the flyover on Opening Night versus the Yankees, I definitely teared up on the line.”

Along with Gage, outfielder Jared Oliva enjoyed another meaningful moment of his own, collecting his first hit in a major league game since July 21, 2021.

“When you think about it that way, it makes it a little bit more cool,” Oliva said. “In the moment, I was just thinking get a good pitch to hit. … I’ll probably reflect bit more. My parents probably texted me too.”