github.com/saucelabs/saucectl@v0.175.1/.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 download
     6      - go generate ./...
     7  builds:
     8    - 
     9      main: ./cmd/saucectl/saucectl.go
    10      env:
    11        - CGO_ENABLED=0
    12      goos:
    13        - linux
    14        - windows
    15        - darwin
    16      ldflags:
    17        - -X github.com/saucelabs/saucectl/internal/version.Version={{.Version}}
    18        - -X github.com/saucelabs/saucectl/internal/version.GitCommit={{.Commit}}
    19        - -X github.com/saucelabs/saucectl/internal/setup.SegmentWriteKey={{.Env.SEGMENT_WRITE_KEY}}
    20      ignore:
    21        - goos: windows
    22          goarch: arm64
    23  brews:
    24    - repository:
    25        owner: saucelabs
    26        name: homebrew-saucectl
    27      directory: Formula
    28      test: |
    29        system "#{bin}/goreleaser", "-v"
    30      name: saucectl
    31      homepage: "https://saucelabs.com/"
    32      description: "Test orchestration with Sauce Labs"
    33      commit_author:
    34        name: devx-sauce-bot
    35        email: devx.bot@saucelabs.com
    36  archives:
    37    - name_template: >-
    38        {{ .ProjectName }}_{{ .Version }}_
    39        {{- if eq .Os "darwin"}}mac_
    40        {{- else if eq .Os "linux" }}linux_
    41        {{- else if eq .Os "windows" }}win_
    42        {{- else }}{{ .Os }}_{{ end }}
    43        {{- if eq .Arch "amd64" }}64-bit
    44        {{- else if eq .Arch "386" }}32-bit
    45        {{- else }}{{ .Arch }}{{ end }}
    46      format_overrides:
    47        - goos: windows
    48          format: zip
    49      files:
    50        - LICENSE
    51  checksum:
    52    name_template: 'checksums.txt'
    53  snapshot:
    54    name_template: "{{ .Tag }}-next"
    55  changelog:
    56    sort: asc
    57    filters:
    58      exclude:
    59        - '^docs:'
    60        - '^test:'
    61  project_name: saucectl
    62  release:
    63    prerelease: auto