feat: ci release go binaries

This commit is contained in:
lapwat
2022-07-27 12:30:35 +02:00
parent 6d795f3033
commit 2683e8266e
3 changed files with 20 additions and 27 deletions

18
.github/workflows/release.yml vendored Normal file
View File

@@ -0,0 +1,18 @@
on:
release:
types: [created]
jobs:
releases-matrix:
name: Release Go Binary
runs-on: ubuntu-latest
strategy:
matrix:
goos: [linux, darwin, windows]
steps:
- uses: actions/checkout@v3
- uses: wangyoucao577/go-release-action@v1.30
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: amd64

View File

@@ -4,6 +4,8 @@ on:
push:
paths:
- '**.go'
- 'go.mod'
- 'go.sum'
jobs:
test: