Skip to content

Commit

Permalink
goreleaser fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jianyun8023 committed Sep 2, 2024
1 parent cb47573 commit 15d240f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
13 changes: 5 additions & 8 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
version: 2
project_name: calibre-api

before:
Expand All @@ -7,13 +8,9 @@ before:
builds:
- id: calibre-api
binary: calibre-api
gcflags:
- all=-l -B
ldflags:
- -s -w
# - -X github.com/bookstairs/bookhunter/cmd.gitVersion={{ .Version }}
# - -X github.com/bookstairs/bookhunter/cmd.gitCommit={{ .Commit }}
# - -X github.com/bookstairs/bookhunter/cmd.buildDate={{ .Date }}
flags:
- -gcflags=all=-l -B
- -ldflags=-s -w
env:
- CGO_ENABLED=0
goos:
Expand Down Expand Up @@ -56,4 +53,4 @@ release:
draft: true

snapshot:
name_template: "{{ incminor .Version }}-next"
version_template: "{{ incminor .Version }}-next"
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ help: ## Display this help
/^[a-zA-Z_-]+:.*?##/ { printf " \033[36m%-10s\033[0m %s\n", $$1, $$2 }' $(MAKEFILE_LIST)

build: ## Build executable files
@goreleaser release --rm-dist --snapshot
@goreleaser release --snapshot --clean

test: ## Run tests
go install "github.com/rakyll/gotest@latest"
Expand Down

0 comments on commit 15d240f

Please sign in to comment.