From 077e1afa11bbf7d5cf1c71c337a6df9e6809ee81 Mon Sep 17 00:00:00 2001 From: Kevin Cantwell Date: Mon, 14 Feb 2022 11:14:17 -0500 Subject: [PATCH] add github action for release binaries --- .github/workflows/release.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 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..8d3a6cd --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,29 @@ +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, linux/arm64, windows/386, windows/amd64, darwin/amd64, darwin/arm64 + 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.24 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + goos: ${{ matrix.goos }} + goarch: ${{ matrix.goarch }} + goversion: "https://dl.google.com/go/go1.12.1.linux-amd64.tar.gz" + project_path: "./cmd/zlib" + binary_name: "zlib" + extra_files: LICENSE README.md \ No newline at end of file