In your sources branch, which is the main branch for writing creating posts, create a CNAME file in the sources directory.

vim source/CNAME

Then check-in and deploy

git add source/CNAME
rake deploy

Point your domain to github pages:

A record pointing to

I also redirect www. to the non-www url

CNAME record for to  

Official Docs