version: 2

before:
  hooks:
    # You may remove this if you don't use go modules.
    - go mod tidy
builds:
  - env:
      - CGO_ENABLED=0
    goos:
      - linux
      - windows
      - darwin
    id: "guesswidth"
    main: ./cmd/guesswidth

archives:
- name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"

release:
  extra_files:
    - glob: ./dist/homebrew/*.rb

checksum:
  name_template: 'checksums.txt'
snapshot:
  name_template: "{{ incpatch .Version }}-next"
changelog:
  sort: asc
  filters:
    exclude:
      - '^docs:'
      - '^test:'
brews:
  -
    name: guesswidth
    repository:
      owner: noborus
      name: homebrew-tap
    skip_upload: true
    commit_author:
      name: noborus
      email: noborusai@gmail.com
    description: "guesses the column position for fixed-width formats (fwf)"
    homepage: "https://noborus.github.io/"

# modelines, feel free to remove those if you don't want/use them:
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
