mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-24 04:16:27 +02:00
34 lines
780 B
Go
34 lines
780 B
Go
package main
|
|
|
|
import (
|
|
"log"
|
|
|
|
"github.com/goreleaser/releaser/config"
|
|
"github.com/goreleaser/releaser/pipeline"
|
|
"github.com/goreleaser/releaser/pipeline/brew"
|
|
"github.com/goreleaser/releaser/pipeline/build"
|
|
"github.com/goreleaser/releaser/pipeline/compress"
|
|
"github.com/goreleaser/releaser/pipeline/release"
|
|
)
|
|
|
|
var version = "master"
|
|
|
|
func main() {
|
|
config, err := config.Load("goreleaser.yml")
|
|
if err != nil {
|
|
log.Fatalln("Failed to load goreleaser.yml:", err.Error())
|
|
}
|
|
log.Println("Releasing", config.Git.CurrentTag, "...")
|
|
var pipeline = []pipeline.Pipe{
|
|
build.Pipe{},
|
|
compress.Pipe{},
|
|
release.Pipe{},
|
|
brew.Pipe{},
|
|
}
|
|
for _, pipe := range pipeline {
|
|
if err := pipe.Run(config); err != nil {
|
|
log.Fatalln(pipe.Name(), "failed:", err.Error())
|
|
}
|
|
}
|
|
}
|