mirror of
https://github.com/jayateertha043/goshod.git
synced 2026-07-21 20:11:02 +00:00
28 lines
740 B
YAML
28 lines
740 B
YAML
name: Release Go 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
|