Skip to content

Commit

Permalink
Merge pull request #122 from StyraInc/brew
Browse files Browse the repository at this point in the history
Add brew config back
  • Loading branch information
charlieegan3 authored May 24, 2023
2 parents 8091b9a + 0c78e67 commit b417470
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/push-tags.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,15 @@ jobs:
with:
install-only: true

- name: Generate GitHub App Token
id: generate_token
uses: tibdex/github-app-token@v1
with:
app_id: ${{ secrets.PLATFORM_AUTOMATION_GH_APP_ID }}
private_key: ${{ secrets.PLATFORM_AUTOMATION_GH_APP_PEM_KEY }}

- name: Run GoReleaser
run: goreleaser release
env:
TAP_GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18 changes: 18 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,21 @@ release:
github:
owner: StyraInc
name: regal

brews:
- tap:
owner: StyraInc
name: homebrew-packages
token: "{{ .Env.TAP_GITHUB_TOKEN }}"
url_template: >-
https://github.com/StyraInc/{{ .ProjectName }}/releases/download/{{ .Tag }}/{{ .ProjectName }}_{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
commit_author:
name: Styra DevRel
email: [email protected]
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
homepage: "https://github.com/styrainc/regal"
description: "Regal is a linter for Rego, with the goal of making your Rego magnificent!"

0 comments on commit b417470

Please sign in to comment.