diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2021-12-02 22:08:52 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2021-12-03 17:02:20 +0100 |
commit | 24a893cf838b87e670e9c2a653611c55241ee68c (patch) | |
tree | 35f35300da5e14c74162a112f4c4f1951877e974 /releaser/releaser.go | |
parent | bf1564bd2cc60cd0c14744148b1defd18360e91f (diff) |
releaser: Rework and simplify to use GitHub only for release notes
Diffstat (limited to 'releaser/releaser.go')
-rw-r--r-- | releaser/releaser.go | 28 |
1 files changed, 2 insertions, 26 deletions
diff --git a/releaser/releaser.go b/releaser/releaser.go index 56d0cf1a2..e87836fd5 100644 --- a/releaser/releaser.go +++ b/releaser/releaser.go @@ -181,11 +181,6 @@ func (r *ReleaseHandler) Run() error { return nil } - // For docs, for now we assume that: - // The /docs subtree is up to date and ready to go. - // The hugoDocs/dev and hugoDocs/master must be merged manually after release. - // TODO(bep) improve this when we see how it works. - if err := r.bumpVersions(newVersion); err != nil { return err } @@ -194,27 +189,6 @@ func (r *ReleaseHandler) Run() error { return err } - releaseNotesFile := getReleaseNotesDocsTempFilename(version, true) - - title, description := version, version - if isPatch { - title = "Hugo " + version + ": A couple of Bug Fixes" - description = "This version fixes a couple of bugs introduced in " + mainVersion.String() + "." - } - - // Write the release notes to the docs site as well. - docFile, err := r.writeReleaseNotesToDocs(title, description, releaseNotesFile) - if err != nil { - return err - } - - if _, err := r.git("add", docFile); err != nil { - return err - } - if _, err := r.git("commit", "-m", fmt.Sprintf("%s Add release notes to /docs for release of %s\n\n[ci skip]", commitPrefix, newVersion)); err != nil { - return err - } - if _, err := r.git("tag", "-a", tag, "-m", fmt.Sprintf("%s %s [ci skip]", commitPrefix, newVersion)); err != nil { return err } @@ -225,6 +199,8 @@ func (r *ReleaseHandler) Run() error { } } + releaseNotesFile := getReleaseNotesDocsTempFilename(version, true) + if err := r.release(releaseNotesFile); err != nil { return err } |