Skip to content

Commit 3945a66

Browse files
committed
Add Github Action for Release Automation
1 parent 2ed213f commit 3945a66

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/release.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# .github/workflows/release.yaml
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
releases-matrix:
9+
name: Release Go Binary
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
# build and publish in parallel: linux/386, linux/amd64, windows/386, windows/amd64, darwin/386, darwin/amd64
14+
goos: [linux, windows, darwin]
15+
goarch: ["386", "amd64"]
16+
steps:
17+
- uses: actions/checkout@v2
18+
- uses: wangyoucao577/[email protected]
19+
with:
20+
github_token: ${{ secrets.GITHUB_TOKEN }}
21+
goos: ${{ matrix.goos }}
22+
goarch: ${{ matrix.goarch }}
23+
binary_name: "kv"
24+
extra_files: LICENSE README.md

0 commit comments

Comments
 (0)