diff --git a/.goreleaser.yml b/.goreleaser.yml index 43973f40..ec1f6b75 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,3 +1,7 @@ +before: + hooks: + - make clean + - make packr builds: - binary: "terraform-provider-bless_{{ .Tag }}" env: diff --git a/Makefile b/Makefile index fad2be1f..7aa0f4c8 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,15 @@ test: packr packr: packr -release: packr ## run a release +clean: ## clean the repo + rm terraform-provider-bless 2>/dev/null || true + go clean + rm -rf dist 2>/dev/null || true + packr clean + rm coverage.out 2>/dev/null || true + + +release: ## run a release bff bump git push goreleaser release --rm-dist