1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-07-03 00:57:43 +02:00
This commit is contained in:
Carlos Alexandro Becker
2017-01-14 12:34:22 -02:00
parent ae6c0d3063
commit ddec194c7e
18 changed files with 260 additions and 194 deletions

32
pipeline/git/git.go Normal file
View File

@ -0,0 +1,32 @@
package git
import "github.com/goreleaser/releaser/context"
// Pipe for brew deployment
type Pipe struct{}
// Name of the pipe
func (Pipe) Name() string {
return "Git"
}
// Run the pipe
func (Pipe) Run(context *context.Context) (err error) {
tag, err := currentTag()
if err != nil {
return
}
previous, err := previousTag(tag)
if err != nil {
return
}
log, err := log(previous, tag)
if err != nil {
return
}
context.Git.CurrentTag = tag
context.Git.PreviousTag = previous
context.Git.Diff = log
return
}