Currently we assume the repository is a Project Pages repo, and always push to the gh-pages branch. If the repo name is of the form <user>/<user>.github.[io|com] then it's a User/Org Pages repo, and the build output should be pushed to the master branch instead.
There is still an issue - I have compared $WERCKER_GH_PAGES_REPO with the regex, instead I should be comparing $repo with the regex. Because now since this issue has been fixed, I won't have to pass the repository as a parameter externally.
Currently we assume the repository is a Project Pages repo, and always push to the
gh-pages
branch. If the repo name is of the form<user>/<user>.github.[io|com]
then it's a User/Org Pages repo, and the build output should be pushed to themaster
branch instead.ref: GitHub Help
ref: jnordberg/wintersmith#151