print out file name in console

This commit is contained in:
Fabio Berger
2017-11-17 13:24:15 -05:00
parent 7b61ad639b
commit 2e368b50eb

View File

@@ -40,8 +40,9 @@ getLatestTagAndVersionAsync(subPackageName)
if (result.stderr !== '') {
throw new Error(result.stderr);
}
console.log('POSTPUBLISH: Doc generation successful, uploading docs...');
const s3Url = 's3://0xjs-docs-jsons/v' + version +'.json';
const fileName = 'v' + version + '.json';
console.log('POSTPUBLISH: Doc generation successful, uploading docs... as ', fileName);
const s3Url = 's3://0xjs-docs-jsons/' + fileName;
return execAsync('aws s3 cp ' + __dirname + '/../docs/index.json ' + s3Url + ' --profile 0xproject --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers --content-type aplication/json');
}).catch (function(err) {
throw err;