searxng-mcp-go/.goreleaser.yaml
XLion aa97eee571
ci: move go mod tidy check before GoReleaser and clean up pre-release build path
- Move go mod tidy from goreleaser before hook to a pre-flight check step
  so dirty go.mod/go.sum are caught before release publishing
- Change goreleaser before hook to go mod download (no repo mutation)
- Swap go mod download/verify order (download first, then verify)
- Change pre-release build to output at /tmp to avoid dirtying repo root
- Remove post-goreleaser dirty module check (no longer needed)
- Add GNUPGHOME env to cleanup step with explanation
2026-06-11 04:01:06 +08:00

89 lines
1.8 KiB
YAML

# .goreleaser.yaml
version: 2
project_name: searxng-mcp-go
before:
hooks:
- go mod download
builds:
- id: searxng-mcp-go
main: .
binary: searxng-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: searxng-mcp-go
prerelease: auto
make_latest: true
homebrew_casks:
- name: searxng-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/searxng-mcp-go"
description: "SearXNG MCP Server — web search via Meta Search Engine"
license: "AGPL-3.0"
binaries:
- searxng-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