From e1b3d0798e0df09906a3885d598b89105182b8c4 Mon Sep 17 00:00:00 2001 From: Justin Campbell Date: Fri, 8 Jan 2021 12:52:59 -0500 Subject: [PATCH] Add GoReleaser GitHub action --- .github/workflows/release.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 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..fc621f4 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,23 @@ +name: goreleaser + +on: + push: + tags: + - '*' + +jobs: + goreleaser: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - uses: actions/setup-go@v2 + with: + go-version: 1.15 + - uses: goreleaser/goreleaser-action@v2 + with: + version: latest + args: release --rm-dist + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}