Skip to content

Commit

Permalink
goreleaser: publish Homebrew formula
Browse files Browse the repository at this point in the history
  • Loading branch information
radeksimko committed Jul 7, 2020
1 parent aa04dcc commit 25e9978
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ jobs:
RELEASE_AWS_SECRET_ACCESS_KEY: ${{ secrets.RELEASE_AWS_SECRET_ACCESS_KEY }}
CODESIGN_IMAGE: ${{ steps.codesign.outputs.image }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HOMEBREW_TAP_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}
ARTIFACTORY_TOKEN: ${{ secrets.ARTIFACTORY_TOKEN }}
ARTIFACTORY_USER: ${{ secrets.ARTIFACTORY_USER }}
CIRCLE_TOKEN: ${{ secrets.CIRCLE_TOKEN }}
Expand Down
20 changes: 20 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,26 @@ signs:
args: ["-u", "{{ .Env.PGP_USER_ID }}", "--output", "${signature}", "--detach-sign", "${artifact}"]
artifacts: checksum

brews:
-
tap:
owner: hashicorp
name: homebrew-tap
token: "{{ .Env.HOMEBREW_TAP_TOKEN }}"
url_template: "https://releases.hashicorp.com/terraform-ls/{{ .Version }}/{{ .ArtifactName }}"
commit_author:
name: hashibot
email: hashibot-feedback@hashicorp.com
folder: Formula
homepage: "https://github.com/hashicorp/terraform-ls"
description: "Terraform Language Server"
conflicts:
- terraform-ls
install: |
bin.install "terraform-ls"
test: |
system "#{bin}/terraform-ls --version"
publishers:
- name: "hc-releases"
checksum: true
Expand Down

0 comments on commit 25e9978

Please sign in to comment.