diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index c492137..a164aba 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -6,22 +6,25 @@ on: - created jobs: - generate: - name: Generate cross-platform builds + releases-matrix: + name: Release Go Binaries runs-on: ubuntu-latest + strategy: + matrix: + goos: [linux, windows, darwin] + goarch: ["386", amd64, arm64] + exclude: + - goarch: "386" + goos: darwin + - goarch: arm64 + goos: windows steps: - - name: Checkout the repository - uses: actions/checkout@v4 - - name: Generate build files - uses: thatisuday/go-cross-build@v1 + - uses: actions/checkout@v4 + - uses: wangyoucao577/go-release-action@v1 with: - platforms: "linux/amd64, darwin/amd64, darwin/arm64, windows/amd64" - name: "ultrafocus" - compress: "true" - dest: "dist" - - name: Upload build-artifacts - uses: skx/github-action-publish-binaries@master - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - args: "./dist/*.tar.gz" + github_token: ${{ secrets.GITHUB_TOKEN }} + goos: ${{ matrix.goos }} + goarch: ${{ matrix.goarch }} + goversion: "1.22" + binary_name: "ultrafocus" + extra_files: LICENSE README.md