Boy or boyfriend

Has anyone been in a situation where they had to decide whether to keep a baby or keep your relationship with your boyfriend.

2nd pregnancy with the same boyfriend and if i keep the baby he doesn’t want to be with me. even though he’s in his child’s life now. he said hes not ready even though before i took a test he said he would be happy