You've already forked goreleaser
mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-12-03 23:21:13 +02:00
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.
11 lines
288 B
Go
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)
|
|
}
|