Skip to content

Commit 99bd06e

Browse files
aertjeofpiyush
andauthored
Release binaries (#62)
* Create release.yml * Update release.yml * Back to go-release-action * Ask for permission to write to releases * Try without asking contents write permission Co-authored-by: Piyush <[email protected]>
1 parent bd36f31 commit 99bd06e

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/release.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Release
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, linux/arm64, windows/386, windows/amd64, darwin/amd64, darwin/arm64
14+
goos: [linux, windows, darwin]
15+
goarch: ["386", amd64, arm64]
16+
exclude:
17+
- goarch: "386"
18+
goos: darwin
19+
- goarch: arm64
20+
goos: windows
21+
steps:
22+
- uses: actions/checkout@v3
23+
- uses: wangyoucao577/[email protected]
24+
with:
25+
github_token: ${{ secrets.GITHUB_TOKEN }}
26+
goos: ${{ matrix.goos }}
27+
goarch: ${{ matrix.goarch }}

0 commit comments

Comments
 (0)