forked from mirrors/action-gh-release
add support for prereleases. fixes #17
This commit is contained in:
parent
bd839f3b8f
commit
a95bad53b2
7 changed files with 20 additions and 5 deletions
|
@ -100,6 +100,7 @@ exports.release = (config, releaser) => __awaiter(void 0, void 0, void 0, functi
|
|||
const name = config.input_name || tag;
|
||||
const body = config.input_body;
|
||||
const draft = config.input_draft;
|
||||
const prerelease = config.input_prerelease;
|
||||
console.log(`👩🏭 Creating new GitHub release for tag ${tag_name}...`);
|
||||
let release = yield releaser.createRelease({
|
||||
owner,
|
||||
|
@ -107,7 +108,8 @@ exports.release = (config, releaser) => __awaiter(void 0, void 0, void 0, functi
|
|||
tag_name,
|
||||
name,
|
||||
body,
|
||||
draft
|
||||
draft,
|
||||
prerelease
|
||||
});
|
||||
return release.data;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue