Skip to content

Commit b323167

Browse files
brtkwrclaude
andcommitted
feat: run goreleaser directly in CI after tagging
Removes separate release workflow since GITHUB_TOKEN can't trigger other workflows. CI now handles test → tag → release in one job. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 4552fe5 commit b323167

2 files changed

Lines changed: 16 additions & 34 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
test:
99
uses: ./.github/workflows/test.yaml
1010

11-
tag:
11+
release:
1212
needs: test
1313
runs-on: ubuntu-latest
1414
permissions:
@@ -19,7 +19,22 @@ jobs:
1919
fetch-depth: 0
2020

2121
- name: Bump version and push tag
22+
id: tag
2223
uses: mathieudutour/github-tag-action@v6.2
2324
with:
2425
github_token: ${{ secrets.GITHUB_TOKEN }}
2526
default_bump: patch
27+
28+
- uses: actions/setup-go@v5
29+
with:
30+
go-version: "1.21"
31+
32+
- name: Run GoReleaser
33+
uses: goreleaser/goreleaser-action@v6
34+
with:
35+
version: "~> v2"
36+
args: release --clean
37+
env:
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
HOMEBREW_TAP_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }}
40+
GORELEASER_CURRENT_TAG: ${{ steps.tag.outputs.new_tag }}

.github/workflows/release.yaml

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)