From e2a245a6458940bdda0a5e953692b4f5afcf1a96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1ximo=20Cuadros?= Date: Mon, 30 Mar 2020 01:03:52 +0200 Subject: [PATCH] ci: add release workflow --- .github/workflows/release.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 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..b6872bb --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,28 @@ +name: Release +on: + release: + types: + - created + +jobs: + release: + strategy: + fail-fast: false + matrix: + goos: [linux, windows, darwin] + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set GO_LDFLAGS + run: | + echo ::set-env name=GO_LDFLAGS::$(make goldflags) + + - name: Release binaries + uses: mcuadros/go-release-action@master + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + goos: ${{ matrix.goos }} + goarch: amd64 + ldflags: ${{ env.GO_LDFLAGS }} \ No newline at end of file