]> git.ipfire.org Git - thirdparty/foundation/foundation-emails.git/commitdiff
Update deploy process to send CSS ZIP file to marketing site server
authorGeoff Kimball <geoff@zurb.com>
Wed, 23 Mar 2016 02:49:53 +0000 (19:49 -0700)
committerGeoff Kimball <geoff@zurb.com>
Wed, 23 Mar 2016 02:49:53 +0000 (19:49 -0700)
gulpfile.js

index 2cfbade5e746fe92e74dcd75b607cc87f5f17ed6..e1cb2a979ea8f6ebbadda82e05606f6651250245 100644 (file)
@@ -161,25 +161,37 @@ gulp.task('templates', function() {
     .pipe(gulp.dest('.templates'));
 });
 
-gulp.task('download:build', ['sass:foundation', 'templates'], function() {
-  gulp.src('test/visual/_template.html', { base: 'test/visual' })
+gulp.task('download:build:index', function() {
+  return gulp.src('test/visual/_template.html', { base: 'test/visual' })
     .pipe($.injectString.replace('<%= contents %>', ''))
     .pipe($.rename('index.html'))
     .pipe(gulp.dest('.download'));
+});
 
-  gulp.src('.templates/*.html')
+gulp.task('download:build:templates', ['templates'], function() {
+  return gulp.src('.templates/*.html')
     .pipe(gulp.dest('.download/templates'));
+});
 
+gulp.task('download:build:css', ['sass:foundation'], function() {
   return gulp.src('_build/assets/css/foundation.css')
     .pipe(gulp.dest('.download/css'));
-});
+})
 
-gulp.task('download', ['download:build'], function(done) {
-  gulp.src('.download/**/*')
+gulp.task('download:build', ['download:build:index', 'download:build:templates', 'download:build:css'], function() {
+  return gulp.src('.download/**/*')
     .pipe($.zip('foundation-emails.zip'))
     .pipe(gulp.dest('.'));
 });
 
+gulp.task('download', ['download:build'], function(done) {
+  return gulp.src('foundation-emails.zip')
+    .pipe($.rsync({
+      hostname: 'deployer@72.32.134.77',
+      destination: '/home/deployer/sites/foundation-sites-6-marketing/downloads/'
+    }));
+});
+
 gulp.task('dist', ['sass:foundation'], function() {
   return gulp.src('_build/assets/css/foundation.css')
     .pipe(gulp.dest('dist'))