Skip to content

.github/workflows/release.yaml #10

.github/workflows/release.yaml

.github/workflows/release.yaml #10

Workflow file for this run

# .github/workflows/release.yaml
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/386, linux/amd64, linux/arm64, windows/386, windows/amd64, darwin/amd64, darwin/arm64
goos: [linux, windows, android]
goarch: [amd64, arm64]
exclude:
- goarch: arm64
goos: windows
- goarch: amd64
goos: android
steps:
- uses: actions/checkout@v4
- uses: wangyoucao577/go-release-action@v1
with:
github_token: ${{ secrets.TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
pre_command: "go mod init frm && go mod tidy"
md5sum: false
binary_name: "sw"