releaser: Delay the version bumping

So we can do the release notes in its own branch if needed.
This commit is contained in:
Bjørn Erik Pedersen 2017-05-20 11:11:23 +03:00
parent 4d1989d59c
commit ebd636e4d5

View file

@ -119,14 +119,6 @@ func (r *ReleaseHandler) Run() error {
}
if r.shouldPrepare() {
if err := bumpVersions(newVersion); err != nil {
return err
}
if _, err := git("commit", "-a", "-m", fmt.Sprintf("%s Bump versions for release of %s\n\n[ci skip]", commitPrefix, newVersion)); err != nil {
return err
}
releaseNotesFile, err := writeReleaseNotesToDocsTemp(version, gitCommits)
if err != nil {
return err
@ -145,6 +137,14 @@ func (r *ReleaseHandler) Run() error {
return nil
}
if err := bumpVersions(newVersion); err != nil {
return err
}
if _, err := git("commit", "-a", "-m", fmt.Sprintf("%s Bump versions for release of %s\n\n[ci skip]", commitPrefix, newVersion)); err != nil {
return err
}
releaseNotesFile := getRelaseNotesDocsTempFilename(version)
// Write the release notes to the docs site as well.