upload to lite cloud as well
This commit is contained in:
Родитель
3d339de436
Коммит
556352ff1c
15
Jakefile
15
Jakefile
|
@ -410,12 +410,17 @@ desc('upload current build to the cloud')
|
|||
task('upload', [ "build/client.js" ], { async : true }, function() {
|
||||
var task = this;
|
||||
var upload = function (buildVersion) {
|
||||
var uploadKey = process.env.TD_UPLOAD_KEY || "direct";
|
||||
console.log("[I] uploading v" + buildVersion)
|
||||
jake.exec([ 'node build/client.js tdupload ' + uploadKey + ' ' + buildVersion ],
|
||||
{ printStdout: true, printStderr: true },
|
||||
function() { task.complete(); });
|
||||
|
||||
var procs = [];
|
||||
if (process.env.TD_UPLOAD_LITE_KEY) {
|
||||
console.log("[I] uploading to lite")
|
||||
procs.push('node build/client.js tdupload ' + Process.env.TD_UPLOAD_LITE_KEY + ' ' + buildVersion + ' latest');
|
||||
}
|
||||
var uploadKey = process.env.TD_UPLOAD_KEY || "direct";
|
||||
procs.push('node build/client.js tdupload ' + uploadKey + ' ' + buildVersion);
|
||||
jake.exec(procs,
|
||||
{ printStdout: true, printStderr: true },
|
||||
function() { task.complete(); });
|
||||
};
|
||||
if (!process.env.TRAVIS) {
|
||||
upload(process.env.TD_UPLOAD_USER || process.env.USERNAME);
|
||||
|
|
Загрузка…
Ссылка в новой задаче