diff options
Diffstat (limited to 'tasks/publish.js')
-rw-r--r-- | tasks/publish.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tasks/publish.js b/tasks/publish.js index 72a4643..564ce08 100644 --- a/tasks/publish.js +++ b/tasks/publish.js @@ -6,7 +6,6 @@ var _ = require('underscore'), module.exports = function(grunt) { grunt.registerTask('publish:latest', function() { var done = this.async(); - initSDK(); git.debug(function(remotes, branches) { grunt.log.writeln('remotes: ' + remotes); @@ -14,6 +13,7 @@ module.exports = function(grunt) { git.commitInfo(function(err, info) { if (info.isMaster) { + initSDK(); publish(fileMap(['-latest', '-' + info.head]), done); } else { // Silently ignore for branches |