Skip to content

release

release #4

Workflow file for this run

# .github/workflows/release.yaml
name: release
on:
release:
types: [created]
permissions:
contents: write
packages: write
jobs:
releases-matrix:
name: Release Go Binary
runs-on: ubuntu-latest
strategy:
matrix:
# build and publish in parallel: {linux,darwin}/{amd64,arm64}
goos: [linux, darwin]
goarch: [amd64, arm64]
steps:
- uses: actions/checkout@v4
- uses: wangyoucao577/go-release-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
extra_files: LICENSE readme.md
compress_assets: 'FALSE'
overwrite: 'TRUE'
ldflags: '-X main.Version=v${{ github.event.release.tag_name }} -extldflags "-static"'