He'll look to continue that hot stretch by beating San Diego for the first time in four starts this season Wednesday night.
Miley (9-8, 3.60 ERA) is 4-0 with a 2.39 ERA over his last five home starts, with his last defeat in Arizona coming May 25 when he gave up seven runs in 3 2-3 innings of a 10-4 loss to the Padres.
The left-hander has lost each of his three outings to them this season while posting a 7.36 ERA, most recently allowing six runs - one earned - in six innings of a 6-4 road defeat June 15.
Miley, though, is 5-1 with a 2.26 ERA over his last 10 starts after giving up three runs in six innings before Arizona fell 4-3 to Philadelphia on Friday. The Diamondbacks had won his previous five outings.
"I felt good, I just didn't make pitches when I needed it,'' Miley said.
He'll look for a better outing as Arizona (68-63) seeks its fourth victory in five games. The Diamondbacks moved within 5 1/2 games of Cincinnati for the NL's second-wild card spot, beating San Diego 10-9 in 10 innings Tuesday after the Reds fell 6-1 to St. Louis earlier in the night.
Arizona hasn't made things easy on itself lately, though. It began this hot stretch by blowing a four-run lead before beating Philadelphia 12-7 in 18 innings Saturday, and squandered a four-run lead in the eighth and a two-run advantage in the ninth before Aaron Hill delivered the winning hit Tuesday.
"A win is a win, and this was a total team effort,'' Hill said. "We keep battling back, and this is fun. It's great to see this team rewarded for good things.''
Gerardo Parra hit a three-run homer and finished with a career-high five RBIs.
San Diego (59-73) had won five of the last six meetings with the Diamondbacks before dropping the first two of this three-game set. Will Venable had three hits and Ronny Cedeno drove in three runs in Tuesday's loss.
Venable has hit safely in 22 of his last 23 games, increasing his batting average 33 points to .278 during that stretch.
The Padres look to avoid the sweep with help from Robbie Erlin (1-2, 7.15), who will be called up to replace the released Edinson Volquez in the rotation.
"It's time for Robbie to get another start, and we'll see where we go from there," manager Bud Black told the team's official website. "We've got to see what guys can do at this level."
The 22-year-old rookie left-hander hasn't been with the Padres since giving up nine runs and walking four in four innings of an 11-7 loss to Washington on July 7, though he did show some promise in previous outings.
"In Robbie's first four starts, two have been good (and) two have been a little rough," Black said. "It's time for Robbie to make a statement as a major league pitcher."
The Diamondbacks designated Jason Kubel for assignment Tuesday. He hit .220 with five home runs after hitting a career-high 30 in 2012.