Skip to content

Commit 9adbf5c

Browse files
Merge pull request #12 from pierrelalanne/plalanne/-/add-goreleaser-step-to-push-formula
Add a CI step with goreleaser to push a brew formula to gitguardian's tap
2 parents d00067c + d6ded29 commit 9adbf5c

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

.github/workflows/tag.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ jobs:
2424
version: latest
2525
args: release --rm-dist
2626
env:
27-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
PAT_GITHUB: ${{ secrets.PAT_GITHUB }}

.goreleaser.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,19 @@ changelog:
3030
exclude:
3131
- "^docs:"
3232
- "^test:"
33+
34+
brews:
35+
-
36+
name: src-fingerprint
37+
tap:
38+
owner: gitguardian
39+
name: homebrew-tap
40+
branch: main
41+
token: "{{ .Env.PAT_GITHUB }}"
42+
download_strategy: CurlDownloadStrategy
43+
commit_author:
44+
name: goreleaserbot
45+
46+
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
47+
folder: Formula
48+
description: "src-fingerprint is a CLI util to easily compute the fileshas associated to a set of git repositories."

0 commit comments

Comments
 (0)