Skip to content

Commit 148281c

Browse files
committed
add release github action to create binary
1 parent 3d316a6 commit 148281c

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/release.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
2+
on:
3+
release:
4+
types: [created]
5+
6+
jobs:
7+
releases-matrix:
8+
name: Release Go Binary
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
# build and publish in parallel: linux/386, linux/amd64, linux/arm64, windows/386, windows/amd64, darwin/amd64, darwin/arm64
13+
goos: [linux, windows, darwin]
14+
goarch: ["386", amd64, arm64]
15+
exclude:
16+
- goarch: "386"
17+
goos: darwin
18+
- goarch: arm64
19+
goos: windows
20+
steps:
21+
- name: checkout
22+
uses: actions/checkout@v3
23+
with:
24+
fetch-depth: 0
25+
- name: Build binary
26+
uses: wangyoucao577/go-release-action@v1.32
27+
with:
28+
github_token: ${{ secrets.GITHUB_TOKEN }}
29+
goos: ${{ matrix.goos }}
30+
goarch: ${{ matrix.goarch }}

0 commit comments

Comments
 (0)