Skip to content

Commit

Permalink
Added Homebrew formula
Browse files Browse the repository at this point in the history
  • Loading branch information
cpliakas committed Jan 21, 2021
1 parent 166618e commit 1ea65b8
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 1 deletion.
56 changes: 56 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,59 @@ changelog:
exclude:
- '^docs:'
- '^test:'

brews:
-
# GOARM to specify which 32-bit arm version to use if there are multiple versions
# from the build section. Brew formulas support atm only one 32-bit version.
# Default is 6 for all artifacts or each id if there a multiple versions.
goarm: 6

# NOTE: make sure the url_template, the token and given repo (github or gitlab) owner and name are from the
# same kind. We will probably unify this in the next major version like it is done with scoop.

# GitHub/GitLab repository to push the formula to
# Gitea is not supported yet, but the support coming
tap:
owner: cpliakas
name: homebrew-goreleaser-test

# Git author used to commit to the repository.
# Defaults are shown.
commit_author:
name: cpliakas
email: [email protected]

# Folder inside the repository to put the formula.
# Default is the root folder.
folder: Formula

# Your app's homepage.
# Default is empty.
homepage: "https://github.com/cpliakas/goreleaser-test"

# Your app's description.
# Default is empty.
description: "Test creating a Homebrew tap with goreleaser."

# SPDX identifier of your app's license.
# Default is empty.
license: "MIT"

# Packages your package depends on.
dependencies:
- name: git
- name: zsh
type: optional


# So you can `brew test` your formula.
# Default is empty.
test: |
system "#{bin}/goreleaser-test"
# Custom install script for brew.
# Default is 'bin.install "program"'.
# install: |
# bin.install "program"
# ...
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.PHONY: dist
dist:
goreleaser
goreleaser --rm-dist

.PHONY: dist-local
dist-local:
Expand Down

0 comments on commit 1ea65b8

Please sign in to comment.