# .goreleaser-release.yaml
#
# The GoReleaser configuration for rgw Defacto2 server.
#
# This goreleaser file is intended for the included docker-compose.yml file
# to generate a release build of the server for Linux.
#
# The configuration documentation is at https://goreleaser.com.
#
# To test any modifications to this configuration:
# $ goreleaser check
# $ goreleaser release --clean --snapshot
# $ goreleaser build --clean --snapshot
#
project_name: df2-server
before:
  hooks:
    # You may remove this if you don't use go modules.
    - go mod tidy
builds:
  - id: server
    env:
      - CGO_ENABLED=0
    targets:
      - linux_amd64
archives:
  - format: zip
    name_template: >-
      {{ tolower .ProjectName }}_{{ .Version }}_{{- tolower .Os }}
    files:
      - src: public/text/defacto2.txt
        strip_parent: true
checksum:
  name_template: "checksums.txt"
snapshot:
  name_template: "{{ incpatch .Version }}-next"
changelog:
  sort: asc
  filters:
    exclude:
      - "^docs:"
      - "^test:"
      - "^tmp:"
      - ".env.local"
      - ".env"
