parent
3bc9dbd221
commit
1e7761bffa
@ -0,0 +1,27 @@ |
||||
"use strict"; |
||||
|
||||
var conditional = require('./conditional'); |
||||
|
||||
module.exports = function (params, processor) { |
||||
return conditional({ |
||||
"owner": params.masterRepoName, |
||||
"branch": "master", |
||||
"task": { |
||||
"name": "nuget-push", |
||||
"type": "dotnetnugetpush", |
||||
"params": { |
||||
"nuspec": params.nuspecName + ".nuspec", |
||||
"name": params.nuspecName, |
||||
"version": params.version |
||||
} |
||||
}, |
||||
"otherwise": { |
||||
"name": "nuget-pack", |
||||
"type": "dotnetnugetpack", |
||||
"params": { |
||||
"nuspec": params.nuspecName + ".nuspec", |
||||
"version": params.version |
||||
} |
||||
} |
||||
}, processor); |
||||
}; |
Loading…
Reference in new issue