Skip to content

Commit 385e8c4

Browse files
committed
ci: update goreleaser config
1 parent b07f98e commit 385e8c4

File tree

2 files changed

+11
-22
lines changed

2 files changed

+11
-22
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,8 @@ jobs:
225225

226226
- name: Validate prerequisites
227227
env:
228-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
229-
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}
228+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
229+
# HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}
230230
SCOOP_BUCKET_GITHUB_TOKEN: ${{ secrets.SCOOP_BUCKET_GITHUB_TOKEN }}
231231
WINGET_GITHUB_TOKEN: ${{ secrets.WINGET_GITHUB_TOKEN }}
232232
CHOCOLATEY_API_KEY: ${{ secrets.CHOCOLATEY_API_KEY }}

.goreleaser.yml

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -87,33 +87,22 @@ git:
8787
ignore_tags:
8888
- "nightly"
8989

90-
# Homebrew tap
90+
# Homebrew formula (stored in main repo)
9191
brews:
9292
- name: emojify-go
9393
repository:
9494
owner: damienbutt
95-
name: homebrew-tap
96-
branch: main
97-
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
98-
url_template: "https://github.com/damienbutt/emojify-go/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
99-
download_strategy: CurlDownloadStrategy
100-
homepage: "https://github.com/damienbutt/emojify-go"
101-
description: "Lightning-fast Go rewrite of emojify - convert emoji aliases to Unicode emojis"
102-
license: "MIT"
103-
skip_upload: false
104-
test: |
105-
system "#{bin}/emojify --version"
106-
assert_match "Hello 😁 world", shell_output("echo 'Hello :grin: world' | #{bin}/emojify")
107-
install: |
108-
bin.install "emojify"
109-
110-
# Local Homebrew formula (maintained in repo)
111-
- name: emojify-go
95+
name: emojify-go
96+
branch: master
97+
token: "{{ .Env.GITHUB_TOKEN }}"
11298
directory: package/homebrew
11399
homepage: "https://github.com/damienbutt/emojify-go"
114100
description: "Lightning-fast Go rewrite of emojify - convert emoji aliases to Unicode emojis"
115101
license: "MIT"
116-
skip_upload: true
102+
commit_author:
103+
name: goreleaserbot
104+
105+
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
117106
test: |
118107
system "#{bin}/emojify --version"
119108
assert_match "Hello 😁 world", shell_output("echo 'Hello :grin: world' | #{bin}/emojify")
@@ -262,7 +251,7 @@ nfpms:
262251
meta: true
263252
contents:
264253
- src: "package/aur/emojify-go-bin/PKGBUILD"
265-
dst: "PKGBUILD"
254+
dst: "PKGBUILD"
266255
file_info:
267256
mode: 0755
268257
- src: ./LICENSE.md

0 commit comments

Comments
 (0)