diff options
-rw-r--r-- | releaser/releaser.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/releaser/releaser.go b/releaser/releaser.go index 02a98fa9f..a41608ed7 100644 --- a/releaser/releaser.go +++ b/releaser/releaser.go @@ -245,7 +245,12 @@ func (r *ReleaseHandler) release(releaseNotesFile string) error { return nil } - cmd := exec.Command("goreleaser", "--rm-dist", "--release-notes", releaseNotesFile, "--skip-publish="+fmt.Sprint(r.skipPublish)) + args := []string{"--rm-dist", "--release-notes", releaseNotesFile} + if r.skipPublish { + args = append(args, "--skip-publish") + } + + cmd := exec.Command("goreleaser", args...) cmd.Stdout = os.Stdout cmd.Stderr = os.Stderr err := cmd.Run() |