From 2a4a507e024963d41c01bf9e867e1a2cdd62f9df Mon Sep 17 00:00:00 2001 From: Bouke van der Bijl Date: Wed, 1 Jul 2020 11:09:25 +0200 Subject: [PATCH] Add goreleaser --- .github/workflows/release.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 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..d4c171d --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,27 @@ +name: Release binaries + +on: + push: + tags: + - '*' + +jobs: + + build: + name: Release + runs-on: ubuntu-latest + steps: + - name: Check out code into the Go module directory + uses: actions/checkout@v2 + - name: Set up Go 1.x + uses: actions/setup-go@v2 + with: + go-version: ^1.14 + id: go + - name: Run GoReleaser + uses: goreleaser/goreleaser-action@v2 + with: + version: latest + args: release --rm-dist + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}