release yaml initial

This commit is contained in:
Jayateertha Guruprasad 2022-05-17 22:25:23 +05:30 committed by GitHub
parent bc7eba9da0
commit 8e5d2adcdc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

28
.github/workflows/release.yml vendored Normal file
View file

@ -0,0 +1,28 @@
name: Release TBB binaries
on:
release:
types: [created]
jobs:
releases-matrix:
name: Release Go Binary
runs-on: ubuntu-latest
strategy:
matrix:
# build and publish in parallel: linux/amd64
goos: [linux, darwin, windows]
goarch: [amd64, arm64, arm, 386]
steps:
- uses: actions/checkout@v2
- name: Run tests
run: go test -v -p=1 -timeout=0 ./...
- uses: wangyoucao577/go-release-action@v1.16
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
project_path: "."
binary_name: "GoShod"
ldflags: "-s -w"
extra_files: LICENSE README.md