lvivier / step-gh-pages

deploy github pages with wercker
37 stars 35 forks source link

deploy to master for User/Organization Pages #1

Closed lvivier closed 11 years ago

lvivier commented 11 years ago

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.

ref: GitHub Help

ref: jnordberg/wintersmith#151

tusharmath commented 11 years ago

+1

tusharmath commented 11 years ago

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.

Created new issue - here