My boyfriend left me and now I'm pregnant

I had dated my boyfriend for almost 2 years and one day he just left me. A week later when I saw him I told him I was late and he asked to get back together. I eventually got my period for a day and he broke up with me as soon as he found out. 1 month later I just got the results that I am pregnant. I don't know what to do