]> git.ipfire.org Git - thirdparty/foundation/foundation-emails.git/commitdiff
Add docs deployment
authorEric Morris <eric@zurb.com>
Tue, 29 Oct 2013 21:49:18 +0000 (14:49 -0700)
committerEric Morris <eric@zurb.com>
Tue, 29 Oct 2013 21:49:18 +0000 (14:49 -0700)
Gruntfile.js

index 2547f29f9d12468b701eb61bd6a56065879185c9..5d1592a2add72ce5bf8f05ff4980b8210651981b 100644 (file)
@@ -58,10 +58,10 @@ module.exports = function(grunt) {
       },
       deployDocs: {
         command: [
-            'cd tmp',
-            'zip all.zip *.html',
-            'for i in *.html; do zip "${i%}.zip" "$i"; done',
-            'cd ../'
+            'cp -r docs build/docs',
+            'cd build/docs',
+            'rsync -r . ink@zurb.com:/var/www/ink/shared/docs',
+            'cd ../../'
         ].join('&&')
       },
       cleanUp: {
@@ -79,5 +79,6 @@ module.exports = function(grunt) {
 
   grunt.registerTask('make:templates', ['includes', 'shell:zipTemplates']);
   grunt.registerTask('deploy:downloads', ['shell:makeStage', 'includes', 'shell:zipTemplates', 'shell:zipFramework', 'shell:linkFramework', 'shell:deployDownloads', 'shell:cleanUp']);
+  grunt.registerTask('deploy:docs', ['shell:makeStage', 'shell:deployDocs', 'shell:cleanUp']);
   // grunt.registerTask('default', ['includes']);
 };
\ No newline at end of file