Skip to content

Commit

Permalink
Release Go Binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
plutov committed Jul 23, 2024
1 parent b1b5101 commit be00bd0
Showing 1 changed file with 19 additions and 16 deletions.
35 changes: 19 additions & 16 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit be00bd0

Please sign in to comment.