From 4a6a14d4b50b2c377e1a126d4df0de511ced7a97 Mon Sep 17 00:00:00 2001 From: aichy126 <16996097+aichy126@users.noreply.github.com> Date: Wed, 8 Feb 2023 14:14:11 +0800 Subject: [PATCH] update action goreleaser --- .goreleaser.yaml | 39 ++++++++++++--------------------------- 1 file changed, 12 insertions(+), 27 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 9feb6d72..cf61b678 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -7,49 +7,33 @@ env: before: hooks: - go mod tidy + +release: + draft: true + builds: - - id: build-amd64 + - id: build main: ./cmd/answer/. binary: answer ldflags: -s -w -X main.Version={{.Version}} -X main.Revision={{.ShortCommit}} -X main.Time={{.Date}} -X main.BuildUser=goreleaser + flags: -v goos: - linux + - darwin goarch: - amd64 + - arm64 - id: build-windows main: ./cmd/answer/. binary: answer ldflags: -s -w -X main.Version={{.Version}} -X main.Revision={{.ShortCommit}} -X main.Time={{.Date}} -X main.BuildUser=goreleaser + flags: -v goos: - windows goarch: - amd64 - - id: build-arm64 - main: ./cmd/answer/. - binary: answer - ldflags: -s -w -X main.Version={{.Version}} -X main.Revision={{.ShortCommit}} -X main.Time={{.Date}} -X main.BuildUser=goreleaser - goos: - - linux - goarch: - - arm64 - - id: build-darwin-arm64 - main: ./cmd/answer/. - binary: answer - goos: - - darwin - goarch: - - arm64 - ldflags: -s -w -X main.Version={{.Version}} -X main.Revision={{.ShortCommit}} -X main.Time={{.Date}} -X main.BuildUser=goreleaser - flags: -v - - id: build-darwin-amd64 - main: ./cmd/answer/. - binary: answer - goos: - - darwin - goarch: - - amd64 - ldflags: -s -w -X main.Version={{.Version}} -X main.Revision={{.ShortCommit}} -X main.Time={{.Date}} -X main.BuildUser=goreleaser - flags: -v + + archives: @@ -70,3 +54,4 @@ changelog: - '^test:' # goreleaser release --snapshot --rm-dist +