Skip to content

Commit 047edaa

Browse files
authored
feat: update release workflow and GoReleaser configuration for Homebrew support (#25)
1 parent cb9346b commit 047edaa

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,4 @@ jobs:
5454
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5555
# Your GoReleaser Pro key, if you are using the 'goreleaser-pro' distribution
5656
# GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
57+
HOMEBREW_TAP_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }}

.goreleaser.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,22 @@ changelog:
3838
- '^test:'
3939

4040
brews:
41-
- homepage: 'https://github.com/sgaunet/homebrew-tools'
41+
- homepage: 'https://github.com/sgaunet/jwt-cli'
42+
description: ''
4243
directory: Formula
4344
commit_author:
4445
name: sgaunet
4546
email: 1552102+sgaunet@users.noreply.github.com
4647
repository:
4748
owner: sgaunet
4849
name: homebrew-tools
50+
# Token with 'repo' scope is required for pushing to a different repository
51+
token: '{{ .Env.HOMEBREW_TAP_TOKEN }}'
52+
url_template: 'https://github.com/sgaunet/jwt-cli/releases/download/{{ .Tag }}/{{ .ArtifactName }}'
53+
install: |
54+
bin.install "jwt-cli"
55+
test: |
56+
system "#{bin}/jwt-cli", "--help"
4957
5058
5159
dockers:

0 commit comments

Comments
 (0)