Skip to content

Commit

Permalink
Github assets: support an array syntax in .release.json (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelMure authored and webpro committed Jul 17, 2017
1 parent 267ea3c commit fc26e21
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/git.js
Expand Up @@ -254,6 +254,10 @@ function uploadAssets(options, remoteUrl, assets) {

if(!config.isDryRun) {
return new Promise((resolve, reject) => {
if (Object.prototype.toString.call(assets) === '[object Array]') {
assets = `{${assets.join(',')}}`;
}

glob(assets, function (err, files) {
if(err) return reject(err);
if(!files.length) {
Expand Down

0 comments on commit fc26e21

Please sign in to comment.