Skip to content

Commit 3de11c5

Browse files
committed
Update README to match new uploading syntax
1 parent 72afc87 commit 3de11c5

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -212,14 +212,15 @@ how to create individual inject tags and inject specific files into them.
212212
By default if you select Github Pages as your deployment option your site will
213213
be pushed to a `gh-pages` branch, this works fine for any project pages but
214214
won't work for your personal repo. If you want to use a `username.github.io`
215-
site you'll have to change it to this:
215+
site all you have to do is to uncomment the `branch` line.
216216

217217
```js
218-
gulp.task('deploy', () => {
219-
return gulp.src('dist/**/*')
220-
.pipe(ghPages({
221-
branch: "master"
222-
}));
218+
gulp.task('upload', (done) => {
219+
ghPages.publish(path.join(__dirname + '/../../', 'dist'), {
220+
dotfiles: true,
221+
// branch: "master"
222+
},
223+
done);
223224
});
224225
```
225226

0 commit comments

Comments
 (0)