Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 7 additions & 14 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ version: 2
project_name: major

before:
hooks:
- go mod tidy
hooks: [go mod tidy]

builds:
- id: major
Expand All @@ -15,28 +14,27 @@ builds:
ldflags:
- -s -w
- -X github.com/major-technology/cli/cmd.version={{.Version}}
# If you want prod builds to default to prod config:
- -X github.com/major-technology/cli/cmd.defaultConfig=configs/prod.json
goos: [darwin, linux]
goarch: [amd64, arm64]

archives:
- format: tar.gz
- formats: [tar.gz] # <- v2 syntax
files:
- LICENSE
- README.md

brews:
brews: # <- still deprecated but works
- name: major
tap:
description: "Major CLI"
homepage: "https://github.com/major-technology/major"
license: "MIT"
repository:
owner: major-technology
name: homebrew-tap
commit_author:
name: goreleaser
email: goreleaser@users.noreply.github.com
description: "Major CLI"
homepage: "https://github.com/major-technology/cli"
license: "MIT"
test: |
system "#{bin}/major", "--version"
install: |
Expand All @@ -46,8 +44,3 @@ release:
github:
owner: major-technology
name: major
draft: false
prerelease: false

changelog:
sort: asc