github.com/celestiaorg/celestia-node@v0.15.0-beta.1/.goreleaser.yaml (about) 1 # This is an example .goreleaser.yml file with some sensible defaults. 2 # Make sure to check the documentation at https://goreleaser.com 3 before: 4 hooks: 5 - go mod tidy 6 builds: 7 - main: ./cmd/celestia 8 binary: celestia 9 env: 10 # NOTE: goreleaser doesn't fully support CGO natively. If CGO is needed 11 # for any node features, this should be removed and a workaround might 12 # need to be created. 13 # REF: https://goreleaser.com/limitations/cgo/ 14 - CGO_ENABLED=0 15 - VersioningPath={{ "github.com/celestiaorg/celestia-node/nodebuilder/node" }} 16 goos: 17 - linux 18 - darwin 19 goarch: 20 - amd64 21 - arm64 22 ldflags: 23 # Ref: https://goreleaser.com/customization/templates/#common-fields 24 # 25 # .CommitDate is used to help with reproducible builds, ensuring that the 26 # same date is always used 27 # 28 # .FullCommit is git commit hash goreleaser is using for the release 29 # 30 # .Version is the version being released 31 - -X "{{ .Env.VersioningPath }}.buildTime={{ .CommitDate }}" 32 - -X "{{ .Env.VersioningPath }}.lastCommit={{ .FullCommit }}" 33 - -X "{{ .Env.VersioningPath }}.semanticVersion={{ .Version }}" 34 dist: ./build/goreleaser 35 archives: 36 - format: tar.gz 37 # this name template makes the OS and Arch compatible with the results of 38 # uname. 39 name_template: >- 40 {{ .ProjectName }}_ 41 {{- title .Os }}_ 42 {{- if eq .Arch "amd64" }}x86_64 43 {{- else if eq .Arch "386" }}i386 44 {{- else }}{{ .Arch }}{{ end }} 45 {{- if .Arm }}v{{ .Arm }}{{ end }} 46 checksum: 47 name_template: "checksums.txt" 48 signs: 49 - artifacts: checksum 50 args: 51 [ 52 "--batch", 53 "-u", 54 "{{ .Env.GPG_FINGERPRINT }}", 55 "--output", 56 "${signature}", 57 "--detach-sign", 58 "${artifact}", 59 ] 60 snapshot: 61 name_template: "{{ incpatch .Version }}-next" 62 changelog: 63 sort: asc 64 filters: 65 exclude: 66 - "^docs:" 67 - "^test:" 68 git: 69 prerelease_suffix: "-"