From fd209516504a6c1518692d72a5763a74beeded27 Mon Sep 17 00:00:00 2001 From: Prad Nukala Date: Tue, 1 Oct 2024 14:53:39 -0400 Subject: [PATCH] chore: update goreleaser configuration for version 2 --- .goreleaser.yaml | 56 ++++++++++++++++++++++++------------------------ 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 04b51664e..07a82ba73 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -1,13 +1,10 @@ +version: 2 project_name: sonr builds: - id: sonr - goos: - - linux - - darwin - goarch: - - amd64 - - arm64 + goos: [linux, darwin] + goarch: [amd64, arm64] main: ./cmd/sonrd binary: sonrd builder: go @@ -17,12 +14,8 @@ builds: - -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} - id: motr - goos: - - linux - - darwin - goarch: - - amd64 - - arm64 + goos: [linux, darwin] + goarch: [amd64, arm64] main: ./cmd/motr binary: motr builder: go @@ -32,10 +25,8 @@ builds: - -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} - id: dwn - goos: - - js - goarch: - - wasm + goos: [js] + goarch: [wasm] main: ./cmd/dwn/dwn.go binary: dwn builder: go @@ -43,18 +34,16 @@ builds: command: build archives: - - id: default - builds: - - sonr - name_template: '{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}' + - id: sonr + builds: [sonr] + name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}' format: tar.gz files: - src: README* - src: CHANGELOG* - id: motr - builds: - - motr + builds: [motr] name_template: '{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}' format: tar.gz files: @@ -66,9 +55,6 @@ release: owner: onsonr name: sonr name_template: "{{.Now.Format '2006.11.22'}}" - ids: - - default - - motr draft: false replace_existing_draft: true replace_existing_artifacts: true @@ -80,8 +66,7 @@ release: brews: - name: sonr - ids: - - default + ids: [sonr] commit_author: name: goreleaserbot email: bot@goreleaser.com @@ -91,7 +76,22 @@ brews: description: "Sonr is a decentralized, permissionless, and censorship-resistant identity network." dependencies: - 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: owner: onsonr name: homebrew-tap