2025-11-08 16:52:16 +00:00
|
|
|
# GoReleaser configuration
|
|
|
|
|
# https://goreleaser.com
|
|
|
|
|
|
|
|
|
|
version: 2
|
|
|
|
|
|
|
|
|
|
before:
|
|
|
|
|
hooks:
|
|
|
|
|
- go mod tidy
|
|
|
|
|
- go test ./...
|
|
|
|
|
|
|
|
|
|
builds:
|
|
|
|
|
- id: mining-cli
|
|
|
|
|
main: ./cmd/mining
|
2025-11-09 01:02:31 +00:00
|
|
|
binary: miner-cli
|
2025-11-09 01:30:16 +00:00
|
|
|
|
2025-11-08 16:52:16 +00:00
|
|
|
env:
|
|
|
|
|
- CGO_ENABLED=0
|
|
|
|
|
goos:
|
|
|
|
|
- linux
|
|
|
|
|
- windows
|
|
|
|
|
- darwin
|
|
|
|
|
goarch:
|
|
|
|
|
- amd64
|
|
|
|
|
- arm64
|
|
|
|
|
goarm:
|
|
|
|
|
- "7"
|
|
|
|
|
ldflags:
|
|
|
|
|
- -s -w
|
|
|
|
|
- -X github.com/Snider/Mining/pkg/mining.version={{.Version}}
|
|
|
|
|
- -X github.com/Snider/Mining/pkg/mining.commit={{.Commit}}
|
|
|
|
|
- -X github.com/Snider/Mining/pkg/mining.date={{.Date}}
|
|
|
|
|
|
|
|
|
|
archives:
|
|
|
|
|
- id: mining
|
|
|
|
|
name_template: >-
|
2025-11-09 01:30:16 +00:00
|
|
|
{{ .Binary }}-{{ .Version }}-
|
|
|
|
|
{{- title .Os }}-
|
2025-11-08 16:52:16 +00:00
|
|
|
{{- if eq .Arch "amd64" }}x86_64
|
|
|
|
|
{{- else if eq .Arch "386" }}i386
|
|
|
|
|
{{- else }}{{ .Arch }}{{ end }}
|
|
|
|
|
{{- if .Arm }}v{{ .Arm }}{{ end }}
|
|
|
|
|
format_overrides:
|
|
|
|
|
- goos: windows
|
|
|
|
|
format: zip
|
|
|
|
|
files:
|
|
|
|
|
- README.md
|
|
|
|
|
- LICENSE
|
|
|
|
|
|
|
|
|
|
checksum:
|
|
|
|
|
name_template: 'checksums.txt'
|
|
|
|
|
|
|
|
|
|
snapshot:
|
|
|
|
|
version_template: "{{ incpatch .Version }}-next"
|
|
|
|
|
|
|
|
|
|
changelog:
|
|
|
|
|
sort: asc
|
|
|
|
|
use: github
|
|
|
|
|
filters:
|
|
|
|
|
exclude:
|
|
|
|
|
- '^docs:'
|
|
|
|
|
- '^test:'
|
|
|
|
|
- '^chore:'
|
|
|
|
|
- 'merge conflict'
|
|
|
|
|
- Merge pull request
|
|
|
|
|
- Merge remote-tracking branch
|
|
|
|
|
- Merge branch
|
|
|
|
|
groups:
|
|
|
|
|
- title: 'New Features'
|
|
|
|
|
regexp: '^.*?feat(\([[:word:]]+\))??!?:.+$'
|
|
|
|
|
order: 0
|
|
|
|
|
- title: 'Bug fixes'
|
|
|
|
|
regexp: '^.*?fix(\([[:word:]]+\))??!?:.+$'
|
|
|
|
|
order: 1
|
|
|
|
|
- title: 'Performance Improvements'
|
|
|
|
|
regexp: '^.*?perf(\([[:word:]]+\))??!?:.+$'
|
|
|
|
|
order: 2
|
|
|
|
|
- title: 'Documentation updates'
|
|
|
|
|
regexp: '^.*?docs(\([[:word:]]+\))??!?:.+$'
|
|
|
|
|
order: 3
|
|
|
|
|
- title: Other work
|
|
|
|
|
order: 999
|
|
|
|
|
|
|
|
|
|
release:
|
|
|
|
|
github:
|
|
|
|
|
owner: Snider
|
|
|
|
|
name: Mining
|
|
|
|
|
draft: false
|
|
|
|
|
prerelease: auto
|
|
|
|
|
mode: replace
|
|
|
|
|
header: |
|
|
|
|
|
## Mining Release {{ .Tag }}
|
|
|
|
|
|
|
|
|
|
**Full Changelog**: https://github.com/Snider/Mining/compare/{{ .PreviousTag }}...{{ .Tag }}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Announce releases
|
|
|
|
|
announce:
|
|
|
|
|
skip: false
|