Skip to content

Commit

Permalink
Merge pull request #10 from larsla/master
Browse files Browse the repository at this point in the history
add -draft for saving release as a draft
  • Loading branch information
c4milo authored Sep 25, 2019
2 parents 35f3022 + c8f3192 commit d3ab836
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ type Release struct {

var verFlag bool
var prereleaseFlag bool
var draftFlag bool

func init() {
log.SetFlags(0)
Expand All @@ -61,6 +62,7 @@ func init() {

flag.BoolVar(&verFlag, "version", false, "-version")
flag.BoolVar(&prereleaseFlag, "prerelease", false, "-prerelease")
flag.BoolVar(&draftFlag, "draft", false, "-draft")
flag.Parse()
}

Expand All @@ -80,6 +82,7 @@ Parameters:
Options:
-version: Displays version
-prerelease: Identify the release as a prerelease
-draft: Save as draft, don't publish
Environment variables:
DEBUG: Allows you to run github-release in debugging mode. DO NOT do this if you are attempting to upload big files.
Expand Down Expand Up @@ -146,7 +149,7 @@ Please refer to https://help.github.com/articles/creating-an-access-token-for-co
TagName: tag,
Name: tag,
Prerelease: prereleaseFlag,
Draft: false,
Draft: draftFlag,
Branch: branch,
Body: desc,
}
Expand Down

0 comments on commit d3ab836

Please sign in to comment.