I found it always painful to only update the gh-pages branch for deploying to a custom domain, an easy solution is pushing a subdirectory to gh-pages branch.

Like so:

git subtree push --prefix docs origin gh-pages

found at gsferreira.com