molecule-cli/.goreleaser.yaml
Molecule AI SDK-Dev 29e025129f chore(cli): add .goreleaser.yaml and resolve KI-004
Add .goreleaser.yaml with the correct module root (dir: .) and main
package path (./cmd/molecule) so the first v* tag release produces
valid artifacts for all 6 targets. Mark KI-004 as resolved in
known-issues.md.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-21 10:33:08 +00:00

70 lines
1.6 KiB
YAML

# GoReleaser configuration for molecule-cli
# https://goreleaser.com/install/
#
# .goreleaser.yaml is the main config file for GoReleaser.
# This file must be committed. GoReleaser reads it from the repo root.
#
# Run locally:
# goreleaser check # validate the config
# goreleaser snapshot --clean --snapshot-dir ./.snapshot # dry-run build
#
# CI: GitHub Actions runs plain `go build` per target (see .github/workflows/release.yml).
# GoReleaser would be used for a more sophisticated release (changelog from commits,
# multiple formats, Homebrew formula update, checksum files). Wire it up here when ready.
version: 2
env:
- GO111MODULE=on
before:
hooks:
- go mod tidy
builds:
- id: molecule
dir: .
main: ./cmd/molecule
binary: molecule
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
env:
- CGO_ENABLED=0
flags:
- -trimpath
archives:
- id: default
format: tar.gz
format_overrides:
- goos: windows
format: zip
files:
- src: completions/**/*
dst: completions
checksum:
name_template: 'molecule_{{.Os}}_{{.Arch}}_{{.Version}}_checksums.txt'
snapshot:
name_template: "{{.Tag}}-snapshot"
checksum:
name_template: 'molecule_{{.Os}}_{{.Arch}}_{{.Version}}_checksums.txt'
algorithm: sha256
release:
github:
owner: Molecule-AI
name: molecule-cli
draft: false
name_template: "{{.Tag}}"
# Homebrew tap formula is managed by .github/workflows/release.yml
# (separate workflow step updates the formula on tag push).
# If GoReleaser takes over Homebrew later, add a brew section here.