How did you tell your partner you were pregnant?

My boyfriend and I have been together for 5 years and I know he doesn't want a baby right now but I just found out that I am pregnant. It is very unexpected but I want to keep it but I don't know how he will react. I'm starting to think I just won't tell him and come home from the hospital one day with the baby haha jk... How did you tell your partner you were pregnant?