Skip to content

Commit 832581e

Browse files
committed
ci(release.yaml): update GitHub Actions workflow to use latest versions and improve build process
The GitHub Actions workflow in `release.yaml` is updated to use the latest versions of Ubuntu, checkout, setup-go, and goreleaser-action. This ensures compatibility with the latest features and security updates. The `go-version` is updated to 1.22 to leverage improvements and new features in the latest Go release. Additionally, the `--clean` argument is added to the goreleaser command to ensure a clean build environment, reducing potential issues from previous builds.
1 parent c53b8b9 commit 832581e

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

.github/workflows/release.yaml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,19 @@ on:
55
- '*'
66
jobs:
77
binary:
8-
runs-on: ubuntu-20.04
8+
runs-on: ubuntu-latest
99
steps:
1010
- name: check out code
11-
uses: actions/checkout@v3
12-
with:
13-
fetch-depth: 0
11+
uses: actions/checkout@v4
1412
- name: setup golang
15-
uses: actions/setup-go@v3
13+
uses: actions/setup-go@v5
1614
with:
17-
go-version: "^1.18"
15+
go-version: 1.22
1816
- name: generate and publish binary
1917
if: startsWith(github.ref, 'refs/tags/')
20-
uses: goreleaser/goreleaser-action@v3
18+
uses: goreleaser/goreleaser-action@v6
2119
env:
2220
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2321
with:
2422
version: latest
25-
args: release
23+
args: release --clean

0 commit comments

Comments
 (0)