Skip to content

Attach binaries

Attach binaries #23

Workflow file for this run

name: Attach binaries
on:
release:
types: [created]
jobs:
releases-matrix:
name: Release Go Binary
runs-on: ubuntu-latest
strategy:
matrix:
goos: [linux, windows, darwin]
goarch: [amd64, arm64]
exclude:
- goarch: arm64
goos: windows
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: "WyriHaximus/github-action-get-previous-tag@v1"
id: previoustag
- uses: wangyoucao577/go-release-action@v1.35
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
goversion: 1.19
compress_assets: OFF
release_tag: ${{ steps.previoustag.outputs.tag }}
ldflags: -X 'main.version=${{ steps.previoustag.outputs.tag }}'