Skip to content

Commit 0dd39a4

Browse files
appleboyclaude
andcommitted
ci(goreleaser): add release workflow for tag pushes
- Add GoReleaser workflow triggered on tag pushes - Use stable Go version for the release build Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent d4f4f69 commit 0dd39a4

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/goreleaser.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Goreleaser
2+
3+
on:
4+
push:
5+
tags:
6+
- "*"
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
goreleaser:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v6
17+
with:
18+
fetch-depth: 0
19+
20+
- name: Setup go
21+
id: setup-go
22+
uses: actions/setup-go@v6
23+
with:
24+
go-version: stable
25+
26+
- name: Run GoReleaser
27+
uses: goreleaser/goreleaser-action@v7
28+
with:
29+
# either 'goreleaser' (default) or 'goreleaser-pro'
30+
distribution: goreleaser
31+
version: latest
32+
args: release --clean
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)