releaser: Push the tag before goreleaser is run
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 3 May 2017 07:29:59 +0000 (09:29 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 3 May 2017 07:29:59 +0000 (09:29 +0200)
Fixes #3405

releaser/releaser.go

index 1b0350fa09080ceee723195a0bfcb93915f1ccfb..ddf64a759bec9fbacbe6da02df43cc532d563efa 100644 (file)
@@ -154,6 +154,10 @@ func (r *ReleaseHandler) Run() error {
                return err
        }
 
+       if _, err := git("push", "origin", tag); err != nil {
+               return err
+       }
+
        if err := r.release(releaseNotesFile); err != nil {
                return err
        }