]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Use Node's execSync to run git commands in deploy process instead of Gitty
authorGeoff Kimball <geoff@zurb.com>
Sat, 23 Jan 2016 00:50:00 +0000 (16:50 -0800)
committerGeoff Kimball <geoff@zurb.com>
Sat, 23 Jan 2016 00:50:00 +0000 (16:50 -0800)
gulp/deploy.js

index 562b5c7403f4a24d4387b8a140f7bb6b500d65d5..ec3d78f790d9c107536b6da4ffec507dd36e8223 100644 (file)
@@ -11,6 +11,7 @@ var git = require('gitty')(process.cwd() + '/');
 var octophant = require('octophant');
 var sequence = require('run-sequence');
 var inquirer = require('inquirer');
+var exec = require('child_process').execSync;
 
 var VERSIONED_FILES = [
   'bower.json',
@@ -98,9 +99,9 @@ gulp.task('deploy:settings', function(cb) {
 
 // Writes a commit with the changes to the version numbers
 gulp.task('deploy:commit', function(cb) {
-  git.commitSync('Bump to version ' + NEXT_VERSION, ['-a']);
-  git.tagSync('v' + NEXT_VERSION);
-  git.push('origin', 'develop', '--tags', cb);
+  exec('git commit -am "Bump to version "' + NEXT_VERSION);
+  exec('git tag v' + NEXT_VERSION);
+  exec('git push origin develop --follow-tags');
   cb();
 });