We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 185561d commit c84cbdbCopy full SHA for c84cbdb
.github/workflows/release.yml
@@ -1,8 +1,9 @@
1
name: Build and Release Go Binaries
2
3
-on:
4
- release:
5
- types: [created]
+on:
+ push:
+ tags:
6
+ - 'v*'
7
8
jobs:
9
build:
@@ -26,9 +27,10 @@ jobs:
26
27
- name: Build Go Binary
28
run: |
29
mkdir -p dist
- 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 }}
31
- - name: Upload artifacts to release
32
- uses: actions/upload-artifact@v4
+ - name: Release
33
+ uses: softprops/action-gh-release@v2
34
with:
- path: dist/json-dup-keys-${{ matrix.os }}-${{ matrix.goarch }}
35
+ files: |
36
+ json-dup-keys-${{ matrix.os }}-${{ matrix.goarch }}
0 commit comments