Skip to content

Instantly share code, notes, and snippets.

@benhowes
Last active August 29, 2015 13:56
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benhowes/8801605 to your computer and use it in GitHub Desktop.
Save benhowes/8801605 to your computer and use it in GitHub Desktop.
gulp upload to s3
/*
* Uses https://github.com/nkostelnik/gulp-s3 with
* Gulpjs: http://gulpjs.com/
*/
var s3_creds = {
"key": "AKIAI3Z7CUAFHG53DMJA",
"secret": "acYxWRu5RRa6CwzQuhdXEfTpbQA+1XQJ7Z1bGTCx",
"bucket": "dev.example.com",
"region": "eu-west-1"
};
/* upload the dist files */
gulp.task('upload', ['scripts', 'less'], function(){
return gulp.src('./dist/**',{read:false})
.pipe(s3(s3_creds));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment