From d5fd0014a3452b8942a13fbcf3032405d07470ab Mon Sep 17 00:00:00 2001 From: Ed Cook Date: Tue, 17 Sep 2019 17:43:01 +0100 Subject: [PATCH] Add release github workflow using GoReleaser --- .github/workflows/release.yml | 21 +++++++++++++++++++++ 1 file changed, 21 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..448270b --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,21 @@ +--- +on: + push: + tags: + - 'v*' +name: GoReleaser +jobs: + release: + name: Release + runs-on: ubuntu-latest + needs: [ test, lint ] + steps: + - name: Check out code + uses: actions/checkout@v1 + - name: goreleaser + uses: docker://goreleaser/goreleaser + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + args: release + if: success()