Skip to content

Commit 1d006d6

Browse files
tjp2021claude
andcommitted
ci: add goreleaser release workflow
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 77f1e2e commit 1d006d6

2 files changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/release.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
release:
13+
runs-on: macos-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
- uses: actions/setup-go@v5
19+
with:
20+
go-version: "1.25"
21+
- uses: goreleaser/goreleaser-action@v6
22+
with:
23+
version: latest
24+
args: release --clean
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}

.goreleaser.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ brews:
3636
- repository:
3737
owner: tjp2021
3838
name: homebrew-devreap
39+
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
3940
homepage: "https://github.com/tjp2021/devreap"
4041
description: "Automatically detect and kill orphaned developer processes"
4142
license: "MIT"

0 commit comments

Comments
 (0)