Closed mattdesl closed 9 years ago
this often works out nicely (just pushing a dist or docs folder to the gh-pages branch)
@meandavejustice wrote a module to automate this process a bit:
https://www.npmjs.com/package/gh-pages-deploy https://github.com/meandavejustice/gh-pages-deploy
This now handles my most common case: https://github.com/mattdesl/ghpages
gh-pages branch is often kinda annoying to deal with. e.g. forgetting to merge with master, accidentally committing to gh-pages instead of master, etc.
one solution is to mirror master to gh-pages but then you end up committing bundle/release assets which is no good.
another is a shell alias like so:
but it does not handle cases where there is a merge conflict (pretty rare). maybe a tool like ghrepo could ease the work involved here.