1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-24 04:16:27 +02:00
Carlos Alexandro Becker 69c8a502db
chore(deps): bump github.com/golangci/golangci-lint from 1.23.7 to 1.27.0 (#1563)
* chore(deps): bump github.com/golangci/golangci-lint from 1.23.7 to 1.27.0

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: tests

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-05-26 00:48:10 -03:00

26 lines
644 B
Go

// Package custompublishers provides a Pipe that executes a custom publisher
package custompublishers
import (
"github.com/goreleaser/goreleaser/internal/exec"
"github.com/goreleaser/goreleaser/internal/pipe"
"github.com/goreleaser/goreleaser/pkg/context"
)
// Pipe for custom publisher.
type Pipe struct{}
// String returns the description of the pipe.
func (Pipe) String() string {
return "custom publisher"
}
// Publish artifacts.
func (Pipe) Publish(ctx *context.Context) error {
if len(ctx.Config.Publishers) == 0 {
return pipe.Skip("publishers section is not configured")
}
return exec.Execute(ctx, ctx.Config.Publishers)
}