Skip to content

Commit

Permalink
chore: tweak build commands
Browse files Browse the repository at this point in the history
  • Loading branch information
omissis committed Sep 10, 2022
1 parent 3f13a88 commit 1ae707e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
8 changes: 8 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
---
project_name: goarkitect
before:
hooks:
- go mod tidy
Expand Down Expand Up @@ -27,6 +29,12 @@ changelog:
exclude:
- '^docs:'
- '^test:'
release:
github:
owner: omissis
name: goarkitect
name_template: '{{ .Tag }}'
prerelease: auto
brews:
- name: goarkitect
tap:
Expand Down
14 changes: 10 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,19 @@ examples:
@go run main.go verify --output=json examples/.goarkitect.yaml
@echo "\n================================================================================\n"

.PHONY: release-local release
.PHONY: build release

release-local:
@GO_VERSION=$$(go version | cut -d ' ' -f 3) OS_ARCH=$$(go version | cut -d ' ' -f 4) goreleaser release --debug --snapshot --rm-dist
build:
@export GO_VERSION=$$(go version | cut -d ' ' -f 3) && \
export OS_ARCH=$$(go version | cut -d ' ' -f 4) && \
goreleaser check && \
goreleaser release --debug --snapshot --rm-dist

release:
@GO_VERSION=$$(go version | cut -d ' ' -f 3) OS_ARCH=$$(go version | cut -d ' ' -f 4) goreleaser --debug release --rm-dist
@export GO_VERSION=$$(go version | cut -d ' ' -f 3) && \
export OS_ARCH=$$(go version | cut -d ' ' -f 4) && \
goreleaser check && \
goreleaser --debug release --rm-dist

# Helpers

Expand Down

0 comments on commit 1ae707e

Please sign in to comment.