Feeling depressed and devastated

I just found out that am pregnant and my boyfriend left me for his ex despite all we have been through together am devastated i don't know what to do pls advice me