From 23664e9b8d0a079e8df4cc8612c812b156d55add Mon Sep 17 00:00:00 2001 From: Lewis Waddicor Date: Mon, 26 Apr 2021 16:43:46 +0100 Subject: [PATCH] chore: Add release build creator (#12) This adds a creator to automatically produce a release build --- .github/workflows/release-build.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/release-build.yml diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml new file mode 100644 index 0000000..fd6a62a --- /dev/null +++ b/.github/workflows/release-build.yml @@ -0,0 +1,24 @@ +on: + release: + types: [ created ] + +jobs: + releases-matrix: + name: Release Go Binary + runs-on: ubuntu-latest + strategy: + matrix: + 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 }} + project_path: "./cmd/cli" + binary_name: "go-svrquery"