diff --git a/.goreleaser.yaml b/.goreleaser.yaml index a0845d6..c7f9cae 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -5,6 +5,7 @@ before: hooks: # You may remove this if you don't use go modules. - go mod tidy + - go test ./... builds: - env: - CGO_ENABLED=0 diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..912f690 --- /dev/null +++ b/Makefile @@ -0,0 +1,9 @@ + +release: + [[ $$( git rev-parse --abbrev-ref HEAD ) == "main" ]] # make sure we are on main + git push origin main + git tag $$( git tag | grep "^v" | sort --version-sort | tail -n 1 | awk -F. '{OFS="."; $$3 = $$3 + 1; print}' ) + git push --tags + +goreleaser: + goreleaser --snapshot --skip-publish --rm-dist