From bf5fe64cc636cdf61b12e2c24d66da7986352caa Mon Sep 17 00:00:00 2001 From: bouncepaw Date: Sat, 1 May 2021 12:25:54 +0500 Subject: [PATCH] Add release.yaml --- .github/workflows/release.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 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 0000000..5a6c654 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,25 @@ +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/amd64 + goos: [linux, windows, darwin] + goarch: ["386", amd64] + exclude: + - goarch: "386" + goos: darwin + steps: + - uses: actions/checkout@v2 + - uses: wangyoucao577/go-release-action@v1.17 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + goos: ${{ matrix.goos }} + goarch: ${{ matrix.goarch }} + binary_name: "mycorrhiza" + extra_files: LICENSE README.md