1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-12-03 23:21:13 +02:00
Files
goreleaser/pipeline/cleaner.go
Jorin Vogel 655e64b4bf Always use latest tag as source. Fixes #72.
Stash local changes and checkout tag before building and releasing.
Added a Cleaner interface to revert repo to original state after.
Clean is even called after errors.
Source pipe is implemented as pointer to store local state.
2017-01-19 09:47:17 +01:00

11 lines
288 B
Go

package pipeline
import "github.com/goreleaser/goreleaser/context"
// Cleaner is an interface that a pipe can implement
// to cleanup after all pipes ran.
type Cleaner interface {
// Clean is called after pipeline is done - even if a pipe returned an error.
Clean(*context.Context)
}