github.com/josephspurrier/go-swagger@v0.2.1-0.20221129144919-1f672a142a00/.goreleaser.yml (about)

     1  # This is an example goreleaser.yaml file with some sane defaults.
     2  # Make sure to check the documentation at http://goreleaser.com
     3  before:
     4    hooks:
     5      - go mod tidy
     6  builds:
     7  - main: ./cmd/swagger/swagger.go
     8    binary: "swagger"
     9    env:
    10    - CGO_ENABLED=0
    11    goos:
    12      - linux
    13      - darwin
    14      - windows
    15    goarch:
    16      - 386
    17      - amd64
    18      - arm
    19      - arm64
    20      - ppc64le
    21    goarm:
    22      - "6"
    23      - "7"
    24    goamd64:
    25      - v2
    26      - v3
    27      - v4
    28  archives:
    29  - format: binary
    30    wrap_in_directory: false
    31    name_template: "{{ .Binary }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ if not (eq .Amd64 \"v1\") }}{{ .Amd64 }}{{ end }}"
    32  checksum:
    33    name_template: 'checksums.txt'
    34  snapshot:
    35    name_template: "{{ .Tag }}-next"
    36  changelog:
    37    sort: asc
    38    filters:
    39      exclude:
    40      - '^docs:'
    41      - '^test:'