Skip to content

Commit

Permalink
Removing brew packages in go-releaser (#138)
Browse files Browse the repository at this point in the history
Removing homebrew
  • Loading branch information
Melkeydev authored Nov 25, 2023
1 parent c713f8a commit 7c7bc8b
Showing 1 changed file with 29 additions and 40 deletions.
69 changes: 29 additions & 40 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 7c7bc8b

Please sign in to comment.