-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
onaliugo
committed
Oct 9, 2015
1 parent
a1b74af
commit 8833252
Showing
3 changed files
with
15 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
var opts = require('../opts'); | ||
var log = require('../tools/log'); | ||
var exec = require('child_process').exec; | ||
|
||
module.exports = function (cb) { | ||
var cmd = 'curl --data \'{"tag_name": "' + opts.nextRelease.name + '","target_commitish": "master","name": "' + opts.nextRelease.name + '","body": "Release body","draft": true,"prerelease": false}\' https://api.github.com/repos/Wisembly/Tapestry/releases?access_token=' + opts.env.access_token; | ||
|
||
exec(cmd, function (err, data) { | ||
if (err) return false; | ||
log('Release published ✓'); | ||
return cb(null); | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
var opts = require('../opts'); | ||
var log = require('../tools/log'); | ||
var exec = require('child_process').exec; | ||
|
||
module.exports = function (cb) { | ||
var cmd = 'curl --data \'{"tag_name": "' + opts.nextRelease.name + '","target_commitish": "master","name": "' + opts.nextRelease.name + '","body": "Release body","draft": true,"prerelease": false}\' https://api.github.com/repos/Wisembly/Tapestry/releases?access_token=' + opts.env.access_token; | ||
var cmd = 'git push origin master'; | ||
|
||
exec(cmd, function (err, data) { | ||
if (err) return false; | ||
log('Release published ✓'); | ||
return cb(null); | ||
}); | ||
}; |