From 0dbb442d30f2113529870d0012edc2d7ab540ec3 Mon Sep 17 00:00:00 2001 From: Josh Silvas Date: Wed, 30 Aug 2023 16:38:16 -0500 Subject: [PATCH] Add mac and windows builds to goreleaser. --- .goreleaser.yml | 4 ++++ Makefile | 8 +++++--- VERSION | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 54a39c89..cbf74ecf 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -10,9 +10,13 @@ builds: - "-s -w -X main.version={{ .Version }} -X main.commit={{ .Commit }}" goos: - "freebsd" + - "windows" - "linux" + - "darwin" goarch: - "amd64" + - "386" + - "arm" - "arm64" ignore: - goos: "darwin" diff --git a/Makefile b/Makefile index 43897837..469c9236 100644 --- a/Makefile +++ b/Makefile @@ -17,9 +17,11 @@ release: ## Run goreleaser to create a release @goreleaser --rm-dist --skip-validate --skip-announce .PHONY: release -__gpg: - @echo ${GPG_PRIVATE_KEY} | base64 -d > private.key - @gpg --import private.key +tag: ## Tag and push the version defined in VERSION file + @git tag -d $(VERSION) || true + @git tag $(VERSION) + @git push origin $(VERSION) +.PHONY: tag # ------------------------------------------------------------------------------------------- # CODE-QUALITY/TESTS: Linting and testing directives. diff --git a/VERSION b/VERSION index a1c2c6a9..f4caccce 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -v0.1.1 \ No newline at end of file +v0.1.2 \ No newline at end of file