Skip to content

Commit b00364d

Browse files
committed
Update GitHub Actions workflow for release process
- Simplified tag pattern for versioning - Upgraded checkout and setup-go actions to latest versions - Updated Go version to 1.25 - Enhanced GoReleaser action configuration - Added asset upload step
1 parent bda0774 commit b00364d

1 file changed

Lines changed: 15 additions & 8 deletions

File tree

.github/workflows/release.yml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
on:
22
push:
33
tags:
4-
- "v[0-9]+.[0-9]+.[0-9]+*"
4+
- "v*"
55

66
jobs:
77
build:
@@ -10,20 +10,27 @@ jobs:
1010

1111
steps:
1212
- name: Check out code into the Go module directory
13-
uses: actions/checkout@v2
13+
uses: actions/checkout@v5
1414
with:
1515
fetch-depth: 0 # See: https://goreleaser.com/ci/actions/
1616

17-
- name: Set up Go 1.16
18-
uses: actions/setup-go@v2
17+
- name: Set up Go
18+
uses: actions/setup-go@v5
1919
with:
20-
go-version: 1.16
20+
go-version: 1.25
2121
id: go
2222

2323
- name: Run GoReleaser
24-
uses: goreleaser/goreleaser-action@master
24+
uses: goreleaser/goreleaser-action@v6
2525
with:
2626
version: latest
27-
args: release --rm-dist
27+
distribution: goreleaser
28+
args: release --clean
29+
workdir: gurl
2830
env:
29-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
- name: Upload assets
33+
uses: actions/upload-artifact@v4
34+
with:
35+
name: gurl
36+
path: gurl/dist/*

0 commit comments

Comments
 (0)