go-cursor-help-v2/.goreleaser.yml
煎饼果子卷鲨鱼辣椒 bf6adcbac2 chore: update GoReleaser configuration and enhance auto-tag workflow
- Added 'go mod download' step to ensure dependencies are available before builds.
- Introduced debug flag in GoReleaser execution for improved troubleshooting.
- Added error checking step to capture GoReleaser output and configuration details on failure.
- Modified build summary step to reflect GPG signing status as disabled, streamlining the release process.
2024-12-30 19:17:46 +08:00

47 lines
844 B
YAML

before:
hooks:
- go mod tidy
- go mod download
builds:
- id: cursor-id-modifier
main: ./cmd/cursor-id-modifier/main.go
binary: cursor-id-modifier
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
- "386"
ignore:
- goos: darwin
goarch: "386"
ldflags:
- -s -w
- -X 'main.version={{.Version}}'
flags:
- -trimpath
mod_timestamp: '{{ .CommitTimestamp }}'
archives:
- id: binary
format: binary
name_template: >-
{{ .Binary }}_
{{- .Os }}_
{{- if eq .Arch "amd64" }}x64{{ end }}
{{- if eq .Arch "386" }}x86{{ end }}
{{- if eq .Arch "arm64" }}arm64{{ end }}
checksum:
name_template: 'checksums.txt'
algorithm: sha256
changelog:
sort: asc
use: github