Skip to content

Commit 1907139

Browse files
committed
fix: update release workflow to match tfrun configuration
- Update tag pattern to semantic versioning (v*.*.*) - Upgrade actions/setup-go to v5 - Upgrade goreleaser/goreleaser-action to v6 - Remove deprecated distribution parameter - Add HOMEBREW_TAP_GITHUB_TOKEN environment variable - Improve step names and add helpful comments
1 parent f7b2c11 commit 1907139

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

.github/workflows/release.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,34 @@ name: Release
33
on:
44
push:
55
tags:
6-
- 'v*'
6+
- "v*.*.*"
77

88
permissions:
99
contents: write
1010

1111
jobs:
1212
release:
1313
runs-on: ubuntu-latest
14-
14+
1515
steps:
16-
- name: Checkout
16+
- name: Checkout code
1717
uses: actions/checkout@v4
1818
with:
19-
fetch-depth: 0
20-
19+
fetch-depth: 0 # Fetch full history for changelog generation
20+
2121
- name: Set up Go
22-
uses: actions/setup-go@v4
22+
uses: actions/setup-go@v5
2323
with:
24-
go-version: '1.21'
25-
24+
go-version: "1.21"
25+
2626
- name: Run tests
2727
run: go test ./...
28-
29-
- name: Run GoReleaser
30-
uses: goreleaser/goreleaser-action@v5
28+
29+
- name: Install GoReleaser
30+
uses: goreleaser/goreleaser-action@v6
3131
with:
32-
distribution: goreleaser
3332
version: latest
3433
args: release --clean
3534
env:
3635
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36+
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}

0 commit comments

Comments
 (0)