A year after a man's body was found wrapped in a blanket next to a dumpster in Del Valle, investigators have filed a murder charge against the victim's girlfriend, according to the Travis County sheriff’s office.

Stephanie Marie Ray, 34, already had been arrested earlier this year on a charge of tampering with evidence in the case. Officials said she gave conflicting accounts about what happened in the moments before 31-year-old Johnny Cardenas was shot in the head in a mobile home about 100 yards from where his body was found in the 9800 block of Blocker Lane on July 11, 2018. Detectives also said she’d tried to clean up blood inside the home, according to an arrest affidavit filed in February.

The day after Cardenas’ death, Ray told a detective she last saw Cardenas around 4 a.m. or 5 a.m. on July 9, 2018, when he got into an SUV with other people. Later, she told authorities she and Cardenas were watching movies with their child that day when a truck parked across the street with its lights on. Then, she claimed, a man came inside and began to fight with Cardenas over drugs. She said she went to a bedroom with their child and heard a gunshot.

Ray told investigators she heard a gunshot, then looked outside her window to see two men carrying Cardenas’ body to the dumpster, records show.

But none of those stories were true, according to a new affidavit filed Monday.

The document says Ray agreed to a polygraph test in which she confessed to shooting Cardenas and sending text messages to make it appear as if he were still alive, the affidavit says.

Ray said Cardenas' death stemmed from a domestic violence incident that spun out of control.

Ray said Cardenas became angry because he had run out of beer. He made Ray go to the store to get more, and, when she came back, he pushed her to the floor, strangled her, hit her and kicked her in the side, the affidavit says. At the time, Ray thought she was pregnant, the document says.

Cardenas' relatives earlier told police that Cardenas beat her and that she was afraid of him. Ray had injuries when Cardenas' body was found that were consistent with being in a fight, the affidavit says.

The day of the shooting, Ray told Cardenas she needed to go to the bathroom, according to the report. The document said Ray told authorities Cardenas wouldn't let her go and pointed a gun at her feet, telling her to choose which foot she wanted to be shot.

"Stephanie said Johnny told her if she did not choose a foot then he would choose one for her," the affidavit says.

Ray told investigators she ran into the bathroom, and while she was washing her hands, Cardenas stood in the doorway and fired a shot that whizzed right by her head, the affidavit says.

According to the report, Ray said she ran from the bathroom and picked up their baby girl and tried to run away. Cardenas tried to fire another round, but the gun didn't go off, the affidavit says.

Ray told officials Cardenas put the gun down and grabbed two knives. He used one to cut her arm and threw the other at her leg, the affidavit says.

Ray said she ran to the kitchen and grabbed Cardenas' gun, warning him not to come any closer, according to the report. When Cardenas picked up a shoe and threw it at Ray, she said, she opened fire, striking Cardenas in the head, according to the report.

Ray is being held at the Travis County Jail on combined bail of $125,000.

Murder is a first-degree felony punishable by five to 99 years in prison.