before:
  hooks:
    - go mod download
builds:
  - id: gobl.ticketbai
    env:
      - CGO_ENABLED=0
    goos:
      - linux
      - windows
      - darwin
    main: ./cmd/gobl.ticketbai
    binary: gobl.ticketbai

archives:
  - id: gobl.ticketbai
    builds:
      - gobl.ticketbai
    format: tar.gz
    name_template: "gobl.ticketbai_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
    wrap_in_directory: true

checksum:
  name_template: "checksums.txt"
snapshot:
  name_template: "{{ .Tag }}"
changelog:
  sort: asc
  filters:
    exclude:
      - "^docs:"
      - "^test:"
release:
  github:
    owner: invopop
    name: gobl.ticketbai
  prerelease: auto
