pgherveou / gulp-awspublish

gulp plugin to publish files to amazon s3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Failing always without showing error msg

ajaykumar96 opened this issue · comments

I am new to gulp, I have done some changes to code. But the code is not working . It is not showing any error msg too.Can anyone suggest any errors?
My code is:

var awspublish = require('gulp-awspublish');

gulp.task('publish', function() {

// create a new publisher using S3 options
// http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/S3.html#constructor-property
var publisher = awspublish.create({
region: 'ap-south-1',
params: {
Bucket: 'sample-project'
},
accessKeyId: '',
secretAccessKey: '
***************'
});

return gulp.src('./index.html')
// gzip, Set Content-Encoding headers and add .gz extension
.pipe(awspublish.gzip({ ext: '.gz' }))

 // print upload updates to console 
.pipe(awspublish.reporter());

});