mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
parent
918177ac25
commit
de23293486
1 changed files with 6 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue