Назад към всички

goreleaser-setup

// Set up goreleaser for Go release automation with cross-compilation and publishing.

$ git log --oneline --stat
stars:384
forks:73
updated:March 4, 2026
SKILL.mdreadonly
SKILL.md Frontmatter
namegoreleaser-setup
descriptionSet up goreleaser for Go release automation with cross-compilation and publishing.
allowed-toolsRead, Write, Edit, Bash, Glob, Grep

Goreleaser Setup

Set up goreleaser for Go release automation.

Generated Patterns

# .goreleaser.yaml
version: 2
builds:
  - env: [CGO_ENABLED=0]
    goos: [linux, windows, darwin]
    goarch: [amd64, arm64]
    ldflags:
      - -s -w -X main.version={{.Version}}

archives:
  - format: tar.gz
    format_overrides:
      - goos: windows
        format: zip

checksum:
  name_template: 'checksums.txt'

changelog:
  sort: asc
  filters:
    exclude: ['^docs:', '^test:', '^chore:']

brews:
  - repository:
      owner: myuser
      name: homebrew-tap
    homepage: https://github.com/myuser/myapp
    description: My CLI application

Target Processes

  • cli-binary-distribution
  • package-manager-publishing