Skip to content

Commit

Permalink
docs(recipes): update gh-pages (#778)
Browse files Browse the repository at this point in the history
see: #742

Signed-off-by: Antoine Leblanc <[email protected]>
  • Loading branch information
antleblanc authored May 7, 2020
1 parent 9eb0d34 commit 08ef3e7
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions docs/recipes/gh-pages.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,17 @@ $ npm install --save-dev gulp-gh-pages
We need to create a `deploy` task, which will deploy contents of `dist` to the remote `gh-pages` branch:

```js
gulp.task('deploy', ['default'], () => {
return gulp.src('dist/**/*')
function ghPages() {
return src('dist/**/*')
.pipe($.ghPages());
});
}

const deploy = series(build, ghPages);

exports.deploy = deploy;
```

If you don't want to trigger a rebuild on each `gulp deploy`, feel free to remove the `['default']` part.
If you don't want to trigger a rebuild on each `gulp deploy`, feel free to remove the `build` part.

Also, cache from this plugin will be saved to `.publish`, we can ignore it by adding this line to `.gitignore`:

Expand Down

0 comments on commit 08ef3e7

Please sign in to comment.