ST. PETERSBURG, Fla. -- Jeff Samardzija had a dominant performance on a night that was much more than just a ballgame.
Samardzija threw a four-hitter and the San Francisco Giants won their sixth consecutive game Friday by beating the Tampa Bay Rays 5-1 on Pride Night, before the biggest regular-season crowd at Tropicana Field in a decade.
The announced attendance of 40,135 was the first regular-season turnout over 40,000 at the Rays' ballpark since opening day in 2006 against Baltimore (40,199). Tampa Bay entered averaging 16,037 in home attendance this season, second-lowest in the majors.
The Rays dedicated this year's event to the victims of Sunday's mass shooting in Orlando. The team on Tuesday made all available tickets $5, with 100 percent of the proceeds benefiting the Pulse Victims Fund.
"It's just a tragedy what happened, and to see how people came together, united, and poured out their hearts for what happened in Orlando really made it a special night," Giants manager Bruce Bochy said.
Brandon Crawford and Gregor Blanco had two RBIs apiece and Brandon Belt homered for the NL West-leading Giants, a season-high 16 games over .500.
Chris Archer (4-9) allowed four runs and six hits in six innings for the Rays.
"I'm glad we were able to have that great of a crowd and the proceeds go to such a great cause," Archer said.
Samardzija (8-4), who was 0-2 with a 7.36 ERA in his previous three starts, retired 22 of 23 before Brad Miller homered with two outs in the ninth.
"Obviously you want the complete-game shutout, but a complete game isn't so bad either," Samardzija said.
Samardzija struck out four during a 115-pitch outing.
"The guy had our number," Rays manager Kevin Cash said.
Major League Baseball vice president of social responsibility and inclusion Billy Bean threw the ceremonial first pitch.
"I think today will be just a great moment if baseball can make everybody smile, enjoy a great baseball game, feel a little closer to one another," Bean said. "It's not specific to one person or another, or race or gender or color or sexual orientation or gender identity. It's about people feeling connected and supportive."
The Rays wore "We are Orlando" T-shirts during batting practice and the hats of their one-time Double-A team, the Orlando Rays, in the game.
Crawford drove in two with a double in the first before Blanco made it 4-0 on a two-run single in the fourth. Belt hit a solo drive in the seventh.
Samardzija's 4-hitter leads Giants on Rays' Pride Night
SAN FRANCISCO GIANTS
'The sound of fear': Thirty years ago, the Loma Prieta earthquake shook the World Series -- and the world
More TOP STORIES News