npm install --save-dev gulp-gh-pages
deploy task in your
gulpfile.js (as below) which can be used to push to
gh-pages going forward.
var gulp = ;var ghPages = ;gulp;
Now, you should be able to call your task by doing:
var ghPages = ;
Default: URL for the remote of the current dir (assumes a git repository)
gulp-gh-pages assumes the current working directory is a git repository and uses its remote url. If your
gulpfile.js is not in a git repository, or if you want to push to a different remote url, you can specify it. Ensure you have write access to the repository.
The branch where deploy will by done. Change to "master" for
Set the directory path to keep a cache of the repository. If it doesn't exist, gulp-gh-pages automatically create it.
Allow you to make a build on the defined branch without pushing it to master. Useful for dry run.
Force adding files to the
gh-pages branch, even if they are ignored by
Edit commit message.
Licensed under the MIT License.