Skip to content

Commit

Permalink
Add Github Actions Release Job
Browse files Browse the repository at this point in the history
  • Loading branch information
SoroushTaheri committed Jun 2, 2022
1 parent c681d71 commit 053b19e
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Release Go Binaries

on:
release:
types: [created]


env:
BINARY_NAME: xero


jobs:
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:
- uses: actions/checkout@v2
- uses: wangyoucao577/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
build_flags: -v
binary_name: "${{ env.BINARY_NAME }}"

0 comments on commit 053b19e

Please sign in to comment.