diff options
author | Bjørn Erik Pedersen <[email protected]> | 2017-05-20 11:11:23 +0300 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2017-05-20 11:11:23 +0300 |
commit | ebd636e4d5f475d4b5d9047580e61ff7c2bf2fb5 (patch) | |
tree | 7b0094249b5cd1d0449cb4a6a9902bf9522a2228 /releaser | |
parent | 4d1989d59c5abc9712b66c628c6742e58f7daf99 (diff) | |
download | hugo-ebd636e4d5f475d4b5d9047580e61ff7c2bf2fb5.tar.gz hugo-ebd636e4d5f475d4b5d9047580e61ff7c2bf2fb5.zip |
releaser: Delay the version bumping
So we can do the release notes in its own branch if needed.
Diffstat (limited to 'releaser')
-rw-r--r-- | releaser/releaser.go | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/releaser/releaser.go b/releaser/releaser.go index e7e7f479f..088b52ec1 100644 --- a/releaser/releaser.go +++ b/releaser/releaser.go @@ -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. |