From 4837a6df09f59bc2c3885efbff2e23a6fc7d8ea8 Mon Sep 17 00:00:00 2001 From: Ian Mckay Date: Fri, 5 Feb 2021 21:43:59 +1100 Subject: [PATCH] Add prebuilt binary builder --- .github/workflows/release.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 00000000..cb363bd1 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,22 @@ +on: + release: + types: [created] + +jobs: + releases-matrix: + name: Release Go Binary + runs-on: ubuntu-latest + strategy: + matrix: + # build and publish in parallel: linux/386, linux/amd64, windows/386, windows/amd64, darwin/386, darwin/amd64 + goos: [linux, windows, darwin] + goarch: ["386", amd64] + steps: + - uses: actions/checkout@v2 + - uses: iann0036/go-release-action@v1.14 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + goos: ${{ matrix.goos }} + goarch: ${{ matrix.goarch }} + goversion: "https://golang.org/dl/go1.16rc1.linux-amd64.tar.gz" + binary_name: "iamlive" \ No newline at end of file