Skip to content

Commit 0727910

Browse files
committed
chore: add release action
1 parent 08120f9 commit 0727910

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/release.yaml

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

0 commit comments

Comments
 (0)