Skip to content

Commit

Permalink
Add mac and windows builds to goreleaser.
Browse files Browse the repository at this point in the history
  • Loading branch information
josh-silvas committed Aug 30, 2023
1 parent 3701c29 commit 0dbb442
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.1.1
v0.1.2

0 comments on commit 0dbb442

Please sign in to comment.