SAN ANTONIO — A historic Steph Curry performance on Friday night was just enough to lift the Warriors over the Spurs to sweep a pair of games at the Frost Bank Center.

A day after announcing his split from Under Armour, Curry warmed up in Nike shoes — Kobes, to be exact — but changed back to his own signature Under Armour shoes once the game began. Regardless of what shoe Curry wore, he had Spurs defenders slipping and sliding in San Antonio.

The Warriors superstar scored 31 points in the second half and 49 overall for the game, tying Michael Jordan for the most 40-point games (44) after turning 30. It was Curry’s second consecutive 40-ball: he put in 46 in the Warriors’ victory over the Spurs on Wednesday.

“It’s pretty cool from an individual accomplishment perspective,” Curry said of matching Jordan. “Just to be able to get that type of company, and that longevity is something I pride myself on.”

Curry’s herculean effort helped the Warriors offset another great showing by the Spurs’ Victor Wembanyama, whose 26 points, 12 rebounds, and 3 blocks weren’t quite enough.

The Warriors and Spurs traded baskets in the game’s final two minutes, but the deciding plays came with 30 seconds left. Curry stole the ball, threw a beautiful behind-the-back pass to Jimmy Butler, and then saw Butler blocked by Wembanyama.

But with 6.4 seconds remaining, Curry drew the foul on a drive and engaged in his trademark theatrics, egging the San Antonio crowd to crank up the volume.

He calmly made the two free throws look routine.

“The free throws at the end of the game, you have to find something to take the nerves out,” Curry said. “For me, that’s just embracing the moment, smiling, having a good time.”

Gary Payton II contested a final shot by De’Aaron Fox at the buzzer to seal the win.

The Warriors (8-6), winners of two in a row, will travel to New Orleans and face former Warrior Kevon Looney today in the fourth game of their six-game road trip.

Guarding Wembanyama

After slowing down Wembanyama Wednesday, the Warriors repeated their tried and true defensive formula two nights later.

Draymond Green was the primary defender. Other helpside defenders — Payton, Brandin Podziemski, etc. — swarmed once he began his dribble.

It gave the 7-foot-4 Frenchman fits on Wednesday, goading him into eight turnovers as he dribbled into traffic.

Though Wembanyama kept the turnovers down on Friday, the Spurs did not as the Warriors swarmed all over the dark grey court. San Antonio had 14 turnovers in the first half alone that led to 17 Warriors points. That did not remain the status quo in the second half, though.

Wembanyama scored 10 in the third quarter, a stretch that included a spectacular self-alley-oop off the glass. The Spurs made a concerted effort to give him the ball in the paint, something they did only once in the first half.

He brought the arena to near pandemonium after slamming an alley-oop on a baseline out-of-bounds play midway through the third quarter. Wembanyama and Green jawed back and forth at one another, and Warriors security had to race in from the other side of the court to help de-escalate the situation. Green was subbed out shortly thereafter.

But Green returned later in the game and, despite playing with five fouls, remained a thorn in Wembanyama’s side throughout.

Richard, Payton rock

Coach Steve Kerr promised drastic changes to the starting lineup and delivered by bringing Moses Moody and rookie Will Richard into the first five to join Curry, Green and Butler.

The new starting lineup might not be a passing fad if the two games in San Antonio are any indication. Moody has been arguably the team’s second-best shooter and has given the starting unit a much-needed shooting component, while Richard has wowed with his energy.

He reversed home a sweet layup around Wembanyama in the first quarter, and then nailed a triple over his outstretched hands in the second.

Richard finished the game with 10 points. Meanwhile, for the second consecutive game, Payton played big minutes because of Jonathan Kuminga’s knee injury-related absence.

Podziemski’s role

The Warriors closed the second quarter with the Moody-Curry-Podziemski-Butler-Green lineup that helped the team end last season 23-8. They were outscored 12-10, but the ball moved and the Spurs made a few tough looks.

Podziemski, whom Kerr lauds for doing “all the little things” as a “connector,” was exactly that. He scored 10, and also grabbed three rebounds and dished out three assists while setting screens and defending Stephon Castle and Fox.

“These last two games, he’s been brilliant,” Kerr said. “He’s just a little bit like Draymond, in what he does doesn’t always end up reflected in the box score.”