github.com/gagliardetto/solana-go@v1.11.0/.goreleaser.yml (about)

     1  # Copyright 2020 dfuse Platform Inc.
     2  #
     3  # Licensed under the Apache License, Version 2.0 (the "License");
     4  # you may not use this file except in compliance with the License.
     5  # You may obtain a copy of the License at
     6  #
     7  #      http://www.apache.org/licenses/LICENSE-2.0
     8  #
     9  # Unless required by applicable law or agreed to in writing, software
    10  # distributed under the License is distributed on an "AS IS" BASIS,
    11  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  # See the License for the specific language governing permissions and
    13  # limitations under the License.
    14  
    15  project_name: solana-go
    16  release:
    17    github:
    18      owner: dfuse-io
    19      name: solana-go
    20    name_template: '{{.Tag}}'
    21  before:
    22    hooks:
    23      # You may remove this if you don't use go modules.
    24      - go mod download
    25      # you may remove this if you don't need go generate
    26      - go generate ./...
    27  builds:
    28  - goos:
    29    - linux
    30    - darwin
    31    - windows
    32    goarch:
    33    - amd64
    34    - "386"
    35    targets:
    36    - linux_amd64
    37    - linux_386
    38    - darwin_amd64
    39    - windows_amd64
    40    - windows_386
    41    main: ./cmd/slnc
    42    ldflags: -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}
    43    binary: slnc
    44    env:
    45    - CGO_ENABLED=0
    46    lang: go
    47  archives:
    48  - name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
    49    replacements:
    50      "386": i386
    51      amd64: x86_64
    52      darwin: macOS
    53      linux: linux
    54      windows: windows
    55    format: tar.gz
    56    format_overrides:
    57    - goos: windows
    58      format: zip
    59    files:
    60    - licence*
    61    - LICENCE*
    62    - license*
    63    - LICENSE*
    64    - readme*
    65    - README*
    66    - changelog*
    67    - CHANGELOG*
    68  nfpms:
    69  - file_name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm
    70      }}v{{ .Arm }}{{ end }}'
    71    bindir: /usr/local/bin
    72  snapcrafts:
    73  - name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm
    74      }}v{{ .Arm }}{{ end }}'
    75  snapshot:
    76    name_template: '{{ .Tag }}-next'
    77  checksum:
    78    name_template: checksums.txt
    79  changelog:
    80    filters:
    81      exclude:
    82      - '^docs:'
    83      - '^test:'
    84    sort: asc
    85  dist: dist
    86  signs:
    87  - cmd: keybase
    88    args:
    89    - sign
    90    - --infile
    91    - $artifact
    92    - --binary
    93    - --outfile
    94    - $signature
    95    - --detached
    96    signature: ${artifact}.sig
    97    artifacts: checksum
    98  env_files:
    99    github_token: ~/.config/goreleaser/github_token
   100  brews:
   101  - github:
   102      owner: dfuse-io
   103      name: homebrew-tap
   104    homepage: "https://dfuse.io/"
   105    description: "Cross-platform Solana command-line swiss-army-knife"