You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
574 B
28 lines
574 B
9 years ago
|
"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);
|
||
|
};
|