Skip to content

Commit

Permalink
add multi assets upload
Browse files Browse the repository at this point in the history
  • Loading branch information
MOTOO11 committed Dec 7, 2016
1 parent 6e4b468 commit 16a9564
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,15 @@ gulp.task('gh:release', () => {
gutil.log('Asset "' + res.name + '" uploaded');
open("https://github.com/odangosan/liveport/releases/tag/" + "v" + pkg.version);
return res.id
}).then((id) => {
return pify(github.repos.getReleaseByTag)({
owner: release.owner,
repo: release.repo,
tag: "v" + pkg.version
})
}).then((res) => {
gutil.log('Tag id "' + res.id + '"');
return res.id
}).then((id) => {
return pify(github.repos.uploadAsset)({
owner: release.owner,
Expand Down

0 comments on commit 16a9564

Please sign in to comment.