| 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 | # you may remove this if you don't use vgo |
| 6 | - go mod tidy |
| 7 | # you may remove this if you don't need go generate |
| 8 | - go generate ./... |
| 9 | builds: |
| 10 | - env: |
| 11 | - CGO_ENABLED=0 |
| 12 | goos: |
| 13 | - darwin |
| 14 | - linux |
| 15 | - windows |
| 16 | goarch: |
| 17 | - 386 |
| 18 | - amd64 |
| 19 | - arm |
| 20 | - arm64 |
| 21 | goarm: |
| 22 | - 6 |
| 23 | - 7 |
| 24 | ignore: |
| 25 | - goos: darwin |
| 26 | goarch: 386 |
| 27 | - goos: darwin |
| 28 | goarch: arm |
| 29 | - goos: darwin |
| 30 | goarch: arm64 |
| 31 | - goos: windows |
| 32 | goarch: arm |
| 33 | - goos: windows |
| 34 | goarch: arm |
| 35 | - goos: windows |
| 36 | goarch: arm64 |
| 37 | - goarch: arm64 |
| 38 | goarm: 6 |
| 39 | archives: |
| 40 | - replacements: |
| 41 | 386: i386 |
| 42 | amd64: x86_64 |
| 43 | checksum: |
| 44 | name_template: 'checksums.txt' |
| 45 | snapshot: |
| 46 | name_template: "{{ .Tag }}-next" |
| 47 | changelog: |
| 48 | sort: asc |
| 49 | filters: |
| 50 | exclude: |
| 51 | - '^docs:' |
| 52 | - '^test:' |