M
M
Maxim Kononov2018-07-09 10:14:10
git
Maxim Kononov, 2018-07-09 10:14:10

How to deploy a Gulp project to Github using rsync task?

I'm not versed in node.js and other coding issues. I have a Gulp project with an rsync task that looks like this:

gulp.task('rsync', function() {
  return gulp.src('app/**')
  .pipe(rsync({
    root: 'app/',
    hostname: '[email protected]',
    destination: 'yousite/public_html/',
    // include: ['*.htaccess'], // Includes files to deploy
    exclude: ['**/Thumbs.db', '**/*.DS_Store'], // Excludes files from deploy
    recursive: true,
    archive: true,
    silent: false,
    compress: true
  }))
});

Is it possible to edit this task so that the project flies to my Github branch?
I will be very grateful for the answers.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey delphinpro, 2018-07-09
@delphinpro

Screwing a nail with a screwdriver can and will work, but why not take a specialized tool?
https://www.npmjs.com/package/gulp-git

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question