Damn, how do i tell him. .

So. . I was talking to this guy for years strictly as friends , long story short,

we had sex and now I'm pregnant

How do I tell him after being friends for so long we are now expecting?