From 053b19e4d819edbb57429c3ceb1e69bacb881e06 Mon Sep 17 00:00:00 2001 From: Soroush Taheri Date: Thu, 2 Jun 2022 07:43:16 +0000 Subject: [PATCH] Add Github Actions Release Job --- .github/workflows/release.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..d519310 --- /dev/null +++ b/.github/workflows/release.yml @@ -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/go-release-action@v1.3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + goos: ${{ matrix.goos }} + goarch: ${{ matrix.goarch }} + build_flags: -v + binary_name: "${{ env.BINARY_NAME }}" \ No newline at end of file