Amber Miller and baby. (Mark Black / AP)

Nearly 39 weeks pregnant with her second child, she was cleared to participate in the Chicago Marathon — and darned if she didn’t finish the race, even though she started having contractions near the finish line.

“I got the okay from my doctor to run half [and walk half], and my husband ran with me and supported me along the way,” Miller, 27, told WGN from her bed at Central DuPage Hospital in Winfield, Ill., where she was resting (the nerve) after the arrival of baby June. “I ran half and walked half. That’s how I finished.

“Everybody just kind of stared as I’m running by.”

Miller, who ran throughout her pregnancy and has run seven marathons, finished in 6 hours, 25 minutes and 50 seconds. And she beat her husband.

“Without training for it, he actually got a little bit behind,” Miller said. “But he was out there with me.”

After finishing the race, she and her husband waited until contractions were five minutes apart, then headed for the hospital. Her 7-pound, 13-ounce daughter arrived at 10:29 p.m.

Her plans for Monday?

“I’m taking it easy today.”