chore: update goreleaser configuration for version 2

This commit is contained in:
Prad Nukala 2024-10-01 14:53:39 -04:00
parent de9b4bf72f
commit fd20951650

View File

@ -1,13 +1,10 @@
version: 2
project_name: sonr project_name: sonr
builds: builds:
- id: sonr - id: sonr
goos: goos: [linux, darwin]
- linux goarch: [amd64, arm64]
- darwin
goarch:
- amd64
- arm64
main: ./cmd/sonrd main: ./cmd/sonrd
binary: sonrd binary: sonrd
builder: go builder: go
@ -17,12 +14,8 @@ builds:
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} - -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}
- id: motr - id: motr
goos: goos: [linux, darwin]
- linux goarch: [amd64, arm64]
- darwin
goarch:
- amd64
- arm64
main: ./cmd/motr main: ./cmd/motr
binary: motr binary: motr
builder: go builder: go
@ -32,10 +25,8 @@ builds:
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} - -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}
- id: dwn - id: dwn
goos: goos: [js]
- js goarch: [wasm]
goarch:
- wasm
main: ./cmd/dwn/dwn.go main: ./cmd/dwn/dwn.go
binary: dwn binary: dwn
builder: go builder: go
@ -43,18 +34,16 @@ builds:
command: build command: build
archives: archives:
- id: default - id: sonr
builds: builds: [sonr]
- sonr name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}'
name_template: '{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}'
format: tar.gz format: tar.gz
files: files:
- src: README* - src: README*
- src: CHANGELOG* - src: CHANGELOG*
- id: motr - id: motr
builds: builds: [motr]
- motr
name_template: '{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}' name_template: '{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}'
format: tar.gz format: tar.gz
files: files:
@ -66,9 +55,6 @@ release:
owner: onsonr owner: onsonr
name: sonr name: sonr
name_template: "{{.Now.Format '2006.11.22'}}" name_template: "{{.Now.Format '2006.11.22'}}"
ids:
- default
- motr
draft: false draft: false
replace_existing_draft: true replace_existing_draft: true
replace_existing_artifacts: true replace_existing_artifacts: true
@ -80,8 +66,7 @@ release:
brews: brews:
- name: sonr - name: sonr
ids: ids: [sonr]
- default
commit_author: commit_author:
name: goreleaserbot name: goreleaserbot
email: bot@goreleaser.com email: bot@goreleaser.com
@ -91,7 +76,22 @@ brews:
description: "Sonr is a decentralized, permissionless, and censorship-resistant identity network." description: "Sonr is a decentralized, permissionless, and censorship-resistant identity network."
dependencies: dependencies:
- name: ipfs - name: ipfs
os: mac repository:
owner: onsonr
name: homebrew-tap
branch: master
- name: motr
ids: [motr]
commit_author:
name: goreleaserbot
email: bot@goreleaser.com
directory: Formula
caveats: "Use motr to interact with the Sonr network"
homepage: "https://sonr.io/"
description: "Motr is a proxy for interacting with the Sonr network."
dependencies:
- name: ipfs
repository: repository:
owner: onsonr owner: onsonr
name: homebrew-tap name: homebrew-tap