Skip to content

Commit aef60ed

Browse files
committed
added homebrew tap releases
1 parent a015cd1 commit aef60ed

2 files changed

Lines changed: 21 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
steps:
1818
- uses: actions/checkout@v3
1919
with:
20-
fetch-depth: '0'
20+
fetch-depth: "0"
2121

2222
- name: Bump version and push tag
2323
uses: anothrNick/github-tag-action@1.64.0
@@ -28,7 +28,7 @@ jobs:
2828

2929
goreleaser:
3030
runs-on: ubuntu-latest
31-
needs: [ tag ]
31+
needs: [tag]
3232

3333
steps:
3434
- name: Checkout
@@ -49,3 +49,4 @@ jobs:
4949
args: release --clean
5050
env:
5151
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52+
GITHUB_HOMEBREW_TAP_AUTH_TOKEN: ${{ secrets.GITHUB_HOMEBREW_TAP_AUTH_TOKEN }}

.goreleaser.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,24 @@ archives:
4545
{{- else if eq .Arch "386" }}i386
4646
{{- else }}{{ .Arch }}{{ end }}
4747
48+
brews:
49+
-
50+
name: cli
51+
url_template: "https://github.com/ThreeDotsLabs/cli/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
52+
commit_author:
53+
name: goreleaserbot
54+
email: bot@goreleaser.com
55+
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
56+
homepage: "https://academy.threedots.tech/"
57+
description: "This is the tdl CLI tool used for running the interactive trainings on the https://academy.threedots.tech/"
58+
custom_block: |
59+
head "https://github.com/ThreeDotsLabs/cli.git"
60+
repository:
61+
owner: ThreeDotsLabs
62+
name: homebrew-tap
63+
branch: main
64+
token: "{{ .Env.GITHUB_HOMEBREW_TAP_AUTH_TOKEN }}"
65+
4866
checksum:
4967
name_template: 'checksums.txt'
5068
snapshot:

0 commit comments

Comments
 (0)