Skip to content

Commit 1de3fc0

Browse files
committed
update github action
1 parent 987e8c9 commit 1de3fc0

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/release.yml

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
name: goreleaser
22

33
on:
4-
pull_request:
54
push:
5+
tags:
6+
- '*'
67

78
permissions:
89
contents: write
@@ -13,23 +14,23 @@ jobs:
1314
steps:
1415
-
1516
name: Checkout
16-
uses: actions/checkout@v2
17+
uses: actions/checkout@v4
1718
with:
1819
fetch-depth: 0
1920
-
2021
name: Fetch all tags
2122
run: git fetch --force --tags
2223
-
2324
name: Set up Go
24-
uses: actions/setup-go@v2
25+
uses: actions/setup-go@v5
2526
with:
26-
go-version: 1.18
27+
go-version: 1.24
2728
-
2829
name: Run GoReleaser
29-
uses: goreleaser/goreleaser-action@v2
30+
uses: goreleaser/goreleaser-action@v6
3031
with:
3132
distribution: goreleaser
3233
version: latest
33-
args: release --rm-dist --skip-announce
34+
args: release --clean
3435
env:
3536
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)