Skip to content

Release prebuilt binary #11

Release prebuilt binary

Release prebuilt binary #11

Workflow file for this run

name: Release prebuilt binary
on:
release:
types: [created]
permissions:
contents: read
jobs:
release:
permissions:
contents: write
strategy:
fail-fast: false
matrix:
include:
# Linux builds
- goos: linux
goarch: amd64
- goos: linux
goarch: arm64
# macOS builds
- goos: darwin
goarch: amd64
- goos: darwin
goarch: arm64
# Windows builds
- goos: windows
goarch: amd64
- goos: windows
goarch: arm64
name: release ${{ matrix.goos }}/${{ matrix.goarch }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: wangyoucao577/go-release-action@v1
with:
github_token: ${{ secrets.SECRET_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
md5sum: false
sha256sum: true
asset_name: "lp-api-${{github.ref_name}}-${{ matrix.goos }}-${{ matrix.goarch }}"
ldflags: "-s -w"