github.com/google/yamlfmt@v0.12.2-0.20240514121411-7f77800e2681/.goreleaser.yaml (about) 1 # Copyright 2022 Google LLC 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 before: 16 hooks: 17 - go mod tidy 18 builds: 19 - id: yamlfmt 20 main: ./cmd/yamlfmt 21 binary: yamlfmt 22 env: 23 - CGO_ENABLED=0 24 goos: 25 - linux 26 - windows 27 - darwin 28 ldflags: 29 - '-s -w -X main.version={{.Version}} -X main.commit={{.ShortCommit}}' 30 archives: 31 - name_template: >- 32 {{ .ProjectName }}_ 33 {{- .Version }}_ 34 {{- title .Os }}_ 35 {{- if eq .Arch "amd64" }}x86_64 36 {{- else if eq .Arch "386" }}i386 37 {{- else }}{{- .Arch }}{{- end }} 38 {{- if .Arm }}v{{- .Arm }}{{- end }} 39 checksum: 40 name_template: 'checksums.txt' 41 snapshot: 42 name_template: "{{ incpatch .Version }}-next" 43 changelog: 44 sort: asc 45 filters: 46 exclude: 47 - '^docs:' 48 - '^test:' 49 - '^ci:' 50