Skip to content

Commit c84cbdb

Browse files
committed
Change workflow
1 parent 185561d commit c84cbdb

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
name: Build and Release Go Binaries
22

3-
on:
4-
release:
5-
types: [created]
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
67

78
jobs:
89
build:
@@ -26,9 +27,10 @@ jobs:
2627
- name: Build Go Binary
2728
run: |
2829
mkdir -p dist
29-
GOOS=${{ matrix.os }} GOARCH=${{ matrix.goarch }} go build -o dist/json-dup-keys-${{ matrix.os }}-${{ matrix.goarch }}
30+
GOOS=${{ matrix.os }} GOARCH=${{ matrix.goarch }} go build -o json-dup-keys-${{ matrix.os }}-${{ matrix.goarch }}
3031
31-
- name: Upload artifacts to release
32-
uses: actions/upload-artifact@v4
32+
- name: Release
33+
uses: softprops/action-gh-release@v2
3334
with:
34-
path: dist/json-dup-keys-${{ matrix.os }}-${{ matrix.goarch }}
35+
files: |
36+
json-dup-keys-${{ matrix.os }}-${{ matrix.goarch }}

0 commit comments

Comments
 (0)