Skip to content

Commit

Permalink
update: layout release
Browse files Browse the repository at this point in the history
  • Loading branch information
ben chen committed Sep 12, 2023
1 parent 1078430 commit 203f189
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
12 changes: 10 additions & 2 deletions layout/.goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,24 @@
before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
- go mod download
# you may remove this if you don't need go generate
- go generate ./...
builds:
- env:
- id: go-mixplus
main: ./cmd
binary: main
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
ldflags:
- -s -w -X main.build={{.Version}}
goarch:
- amd64
- arm64

archives:
- format: tar.gz
Expand Down
5 changes: 5 additions & 0 deletions layout/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,8 @@ test:
go fmt $(go list ./... | grep -v vendor/ | grep -v api/)
go vet $(go list ./... | grep -v vendor/ | grep -v api/)
go test -race $(go list ./... | grep -v vendor/ | grep -v api/)

.PHONY: release
release:
echo "mixplus run make release"
goreleaser release --snapshot --clean

0 comments on commit 203f189

Please sign in to comment.