From 7c7bc8ba5559b78a325861756e8b124957ea8366 Mon Sep 17 00:00:00 2001 From: MelkeyDev <53410236+Melkeydev@users.noreply.github.com> Date: Sat, 25 Nov 2023 10:00:30 -0800 Subject: [PATCH] Removing brew packages in go-releaser (#138) Removing homebrew --- .goreleaser.yml | 69 +++++++++++++++++++++---------------------------- 1 file changed, 29 insertions(+), 40 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 23b6d637..dbefcea9 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,51 +1,40 @@ before: hooks: - - go mod tidy - - ./scripts/completions.sh + - go mod tidy + - ./scripts/completions.sh builds: -- binary: go-blueprint - main: ./ - goos: - - darwin - - linux - - windows - goarch: - - amd64 - - arm64 - env: - - CGO_ENABLED=0 - ldflags: - - -s -w -X github.com/melkeydev/go-blueprint/cmd.GoBlueprintVersion={{.Version}} + - binary: go-blueprint + main: ./ + goos: + - darwin + - linux + - windows + goarch: + - amd64 + - arm64 + env: + - CGO_ENABLED=0 + ldflags: + - -s -w -X github.com/melkeydev/go-blueprint/cmd.GoBlueprintVersion={{.Version}} release: prerelease: auto universal_binaries: -- replace: true + - replace: true archives: -- name_template: >- - {{- .ProjectName }}_ {{- .Version }}_ {{- title .Os }}_ {{- if eq .Arch "amd64" }}x86_64 {{- else if eq .Arch "386" }}i386 {{- else }}{{ .Arch }}{{ end }} {{- if .Arm }}v{{ .Arm }}{{ end -}} - format_overrides: - - goos: windows - format: zip - builds_info: - group: root - owner: root - files: - - README.md - - LICENSE - - completions/* -brews: -- name: go-blueprint - homepage: "https://github.com/Melkeydev/homebrew-melkey" - repository: - owner: Melkeydev - name: homebrew-melkey - folder: Formula - extra_install: |- - bash_completion.install "completions/go-blueprint.bash" => "go-blueprint" - zsh_completion.install "completions/go-blueprint.zsh" => "_go-blueprint" - fish_completion.install "completions/go-blueprint.fish" + - name_template: >- + {{- .ProjectName }}_ {{- .Version }}_ {{- title .Os }}_ {{- if eq .Arch "amd64" }}x86_64 {{- else if eq .Arch "386" }}i386 {{- else }}{{ .Arch }}{{ end }} {{- if .Arm }}v{{ .Arm }}{{ end -}} + format_overrides: + - goos: windows + format: zip + builds_info: + group: root + owner: root + files: + - README.md + - LICENSE + - completions/* checksum: - name_template: 'checksums.txt' + name_template: "checksums.txt"