# This is an example .goreleaser.yml file with some sensible defaults.
# Make sure to check the documentation at https://goreleaser.com
before:
  hooks:
    # You may remove this if you don't use go modules.
    - go mod tidy
builds:
  -
    main: cmd/main.go
    binary: ladder
    env:
      - CGO_ENABLED=0
    goos:
      - linux
      - windows
      - darwin
archives:
  - name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
    format_overrides:
        - goos: windows
          format: zip
checksum:
  name_template: 'checksums.txt'
snapshot:
  name_template: "{{ incpatch .Version }}-next"
changelog:
  sort: asc
  filters:
    exclude:
      - '^docs:'
      - '^public:'
      - '^.github:'
#brews:
#  -
#    repository:
#      owner: everywall
#      name: homebrew-ladder
#      token: "{{ .Env.GORELEASER_GITHUB_TOKEN }}"
#    homepage: "https://www.everyladder.dev"
#    description: "Manage your everyladder applications modify every website"
#    test: |
#      system "#{bin}/everyladder", "--version"