From 9ba2e0f19a9037a78547f157577c1e3a97ec7749 Mon Sep 17 00:00:00 2001 From: Andrii Abramov Date: Mon, 8 Nov 2021 01:29:51 +0200 Subject: [PATCH] configure homebrew for releases --- .goreleaser.yml | 59 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 .goreleaser.yml diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 0000000..1a3260f --- /dev/null +++ b/.goreleaser.yml @@ -0,0 +1,59 @@ +# .goreleaser.yml +brews: + - # Name template of the recipe + # Default to project name + name: goal + + # GitHub/GitLab repository to push the formula to + tap: + owner: aaabramov + name: goal + branch: master + + url_template: "http://github.com/aaabramov/goal/releases/{{ .Tag }}/{{ .ArtifactName }}" + + # Git author used to commit to the repository. + # Defaults are shown. + commit_author: + name: goreleaserbot + email: goreleaser@carlosbecker.com + + # The project name and current git tag are used in the format string. + commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}" + + # Folder inside the repository to put the formula. + # Default is the root folder. + folder: Formula + + # Caveats for the user of your binary. + # Default is empty. + caveats: "See https://github.com/aaabramov/goal" + + # Your app's homepage. + homepage: "https://github.com/aaabramov/goal" + + # Template of your app's description. + description: "Use your aliases safely" + + # SPDX identifier of your app's license. + license: "Apache-2.0" + + # So you can `brew test` your formula. + # Default is empty. + # TODO? + # test: | + # system "#{bin}/program --version" + # ... + + # Custom install script for brew. + # Default is 'bin.install "program"'. + # install: | + # bin.install "program" + # ... + + # Custom post_install script for brew. + # Could be used to do any additional work after the "install" script + # Default is empty. +# post_install: | +# etc.install "app-config.conf" +# ...