Skip to content

Commit b3621cf

Browse files
authored
Merge pull request #11 from harakeishi/feature/add-tap
ai/feat: GoReleaser設定にHomebrew Taps用のリポジトリ情報を追加
2 parents c0dea97 + ab5cc55 commit b3621cf

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ jobs:
3939
args: release --clean
4040
env:
4141
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42+
TAP_GITHUB_TOKEN: ${{ secrets.TAP_GITHUB_TOKEN }}
4243

4344
test-binaries:
4445
needs: goreleaser
@@ -65,4 +66,4 @@ jobs:
6566
if: runner.os == 'Windows'
6667
run: |
6768
.\gopose.exe --version
68-
continue-on-error: true
69+
continue-on-error: true

.goreleaser.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,12 @@ archives:
8383
- LICENSE*
8484
- CHANGELOG*
8585

86+
brews:
87+
- repository:
88+
owner: harakeishi # Homebrew Taps 用のリポジトリのオーナー名
89+
name: homebrew-tap # Homebrew Taps 用のリポジトリ名
90+
token: "{{ .Env.TAP_GITHUB_TOKEN }}" # `TAP_GITHUB_TOKEN` 環境変数をトークンとして使うようにする
91+
8692
# Checksum configuration
8793
checksum:
8894
name_template: "{{ .ProjectName }}_{{ .Version }}_checksums.txt"
@@ -135,4 +141,4 @@ release:
135141

136142
# Announcement
137143
announce:
138-
skip: "{{gt .Patch 0}}"
144+
skip: "{{gt .Patch 0}}"

0 commit comments

Comments
 (0)