github.com/NBISweden/sda-cli@v0.1.2-0.20240506070033-4c8af88918df/.goreleaser.yaml (about)

     1  # The file contains the options for the release package
     2  # Make sure to check the documentation at https://goreleaser.com
     3  before:
     4    hooks:
     5      - go mod tidy
     6      - go generate ./...
     7  builds:
     8    - env:
     9        - CGO_ENABLED=0
    10      goos:
    11        - linux
    12        - windows
    13        - darwin
    14      ignore:
    15        - goarch: 386
    16        - goarch: arm
    17      ldflags:
    18        - -s -w -X main.Version={{ GORELEASER_CURRENT_TAG }}
    19  archives:
    20    - name_template: >-
    21        {{ .ProjectName }}_
    22        {{ .Version }}_
    23        {{- title .Os }}_
    24        {{- if eq .Arch "amd64" }}x86_64
    25        {{- else if eq .Arch "386" }}i386
    26        {{- else }}{{ .Arch }}{{ end }}
    27      format_overrides:
    28        - goos: windows
    29          format: zip
    30  checksum:
    31    name_template: 'checksums.txt'
    32  snapshot:
    33    name_template: "{{ incpatch .Version }}-next"
    34