Skip to content

Commit 3ded294

Browse files
committedJun 13, 2024··
ci: update CI workflow and GoReleaser configuration
- Change single quotes to double quotes in the workflow trigger - Rename job steps for clarity - Update Go version setup to use `go.mod` file and check for the latest version - Update GoReleaser action to version 6 - Modify GoReleaser arguments from `--rm-dist` to `--clean` Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
1 parent 7b5b3bc commit 3ded294

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed
 

‎.github/workflows/goreleaser.yml

+9-10
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Goreleaser
33
on:
44
push:
55
tags:
6-
- '*'
6+
- "*"
77

88
permissions:
99
contents: write
@@ -12,23 +12,22 @@ jobs:
1212
goreleaser:
1313
runs-on: ubuntu-latest
1414
steps:
15-
-
16-
name: Checkout
15+
- name: Checkout repository
1716
uses: actions/checkout@v4
1817
with:
1918
fetch-depth: 0
20-
-
21-
name: Set up Go
19+
20+
- name: Setup go
2221
uses: actions/setup-go@v5
2322
with:
24-
go-version: 1.17
25-
-
26-
name: Run GoReleaser
27-
uses: goreleaser/goreleaser-action@v5
23+
go-version-file: go.mod
24+
check-latest: true
25+
- name: Run GoReleaser
26+
uses: goreleaser/goreleaser-action@v6
2827
with:
2928
# either 'goreleaser' (default) or 'goreleaser-pro'
3029
distribution: goreleaser
3130
version: latest
32-
args: release --rm-dist
31+
args: release --clean
3332
env:
3433
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)
Please sign in to comment.