mirror of
https://github.com/xlionjuan/wastebin-mcp-go.git
synced 2026-11-16 19:40:06 +00:00
- Declare version, commit, date variables in main.go for ldflags injection - Show version on --version and --help (CLI header) - Remove redundant create --version flag - Add .goreleaser.yaml (binary matrix: linux/amd64 + arm64) - Add .github/workflows/release.yml (pre-release gates + GoReleaser)
89 lines
1.8 KiB
YAML
89 lines
1.8 KiB
YAML
# .goreleaser.yaml
|
|
version: 2
|
|
|
|
project_name: wastebin-mcp-go
|
|
|
|
before:
|
|
hooks:
|
|
- go mod download
|
|
|
|
builds:
|
|
- id: wastebin-mcp-go
|
|
main: .
|
|
binary: wastebin-mcp-go
|
|
env:
|
|
- CGO_ENABLED=0
|
|
goos:
|
|
- linux
|
|
goarch:
|
|
- amd64
|
|
- arm64
|
|
tags:
|
|
- netgo
|
|
- osusergo
|
|
flags:
|
|
- -trimpath
|
|
ldflags:
|
|
- -s -w
|
|
- -X main.version=v{{.Version}}
|
|
- -X main.commit={{.Commit}}
|
|
- -X main.date={{.Date}}
|
|
|
|
archives:
|
|
- id: default
|
|
formats:
|
|
- tar.zst
|
|
name_template: >-
|
|
{{ .ProjectName }}_v{{ .Version }}_{{ .Os }}_{{ .Arch }}
|
|
files:
|
|
- README.md
|
|
- LICENSE
|
|
|
|
checksum:
|
|
name_template: "{{ .ProjectName }}_v{{ .Version }}_checksums.txt"
|
|
|
|
snapshot:
|
|
version_template: "{{ .Version }}-next"
|
|
|
|
changelog:
|
|
sort: asc
|
|
filters:
|
|
exclude:
|
|
- "^docs:"
|
|
- "^test:"
|
|
- "^chore:"
|
|
- Merge pull request
|
|
- Merge branch
|
|
|
|
release:
|
|
github:
|
|
owner: xlionjuan
|
|
name: wastebin-mcp-go
|
|
prerelease: auto
|
|
make_latest: true
|
|
|
|
homebrew_casks:
|
|
- name: wastebin-mcp-go
|
|
repository:
|
|
owner: xlionjuan
|
|
name: homebrew-tap
|
|
branch: main
|
|
git:
|
|
url: ssh://[email protected]/xlionjuan/homebrew-tap.git
|
|
private_key: "{{ .Env.HOMEBREW_TAP_SSH_KEY }}"
|
|
directory: Casks
|
|
homepage: "https://github.com/xlionjuan/wastebin-mcp-go"
|
|
description: "Wastebin MCP Server — paste creation via Wastebin"
|
|
license: "AGPL-3.0"
|
|
binaries:
|
|
- wastebin-mcp-go
|
|
commit_author:
|
|
name: xlionjuan-bot1
|
|
email: [email protected]
|
|
signing:
|
|
enabled: true
|
|
key: "{{ .Env.GPG_FINGERPRINT }}"
|
|
program: gpg2
|
|
format: openpgp
|
|
commit_msg_template: "Brew cask update for {{ .ProjectName }} version {{ .Tag }}"
|
|
skip_upload: auto
|