diff --git a/plugin.go b/plugin.go index b5d614c..e9cfa7c 100644 --- a/plugin.go +++ b/plugin.go @@ -130,12 +130,17 @@ func (p Plugin) Exec() error { tag = strings.TrimPrefix(p.Commit.Ref, "refs/tags/") } + draft := p.Config.Draft + if p.Build.Event != "tag" { + draft = true + } + rc := releaseClient{ Client: client, Owner: p.Repo.Owner, Repo: p.Repo.Name, Tag: tag, - Draft: p.Config.Draft, + Draft: draft, Prerelease: p.Config.PreRelease, FileExists: p.Config.FileExists, Title: p.Config.Title,