Skip to content

Commit

Permalink
Fix nuget-publish task
Browse files Browse the repository at this point in the history
  • Loading branch information
ichernev committed Nov 10, 2016
1 parent 73f3c91 commit 37d55e6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tasks/nuget.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ module.exports = function (grunt) {
dest: './'
}
});
grunt.registerTask('nugetkey_pre', function () {
grunt.option('key', process.env.NUGET_KEY);
grunt.option('source', "https://www.nuget.org/api/v2/package");
});
grunt.registerTask('nugetkey_post', function () {
grunt.option('key', null);
grunt.option('source', null);
});
grunt.config('nugetpush', {
dist: {
src: 'Moment.js.*.nupkg'
Expand All @@ -32,6 +40,6 @@ module.exports = function (grunt) {
});

grunt.registerTask('nuget-publish', [
'nugetpack', 'nugetpush', 'clean:nuget'
'nugetpack', 'nugetkey_pre', 'nugetkey', 'nugetkey_post', 'nugetpush', 'clean:nuget'
]);
};

0 comments on commit 37d55e6

Please sign in to comment.