diff options
author | Bjørn Erik Pedersen <[email protected]> | 2018-08-17 10:58:18 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2018-08-17 11:03:28 +0200 |
commit | de23293486bb678fda62c7ca38ed001669d1d227 (patch) | |
tree | 81d89c408db6dd4c43ee8c17d8d12aa8392a42e2 /releaser | |
parent | 918177ac2586e554aaccc51823d573695cb3c698 (diff) | |
download | hugo-de23293486bb678fda62c7ca38ed001669d1d227.tar.gz hugo-de23293486bb678fda62c7ca38ed001669d1d227.zip |
releaser: Work around a Goreleaser bug
Closes #4918
Diffstat (limited to 'releaser')
-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() |