From 9fafb7a6f439290f29e277ab3c30e2675257d156 Mon Sep 17 00:00:00 2001 From: John Harker <43181178+NBTX@users.noreply.github.com> Date: Sun, 7 Jun 2020 19:04:07 +0100 Subject: [PATCH] Add goreleaser workflow --- .github/workflows/main.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..aafa364 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,29 @@ +name: goreleaser + +on: + pull_request: + push: + +jobs: + goreleaser: + runs-on: ubuntu-latest + steps: + - + name: Checkout + uses: actions/checkout@v2 + - + name: Unshallow + run: git fetch --prune --unshallow + - + name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.14 + - + name: Run GoReleaser + uses: goreleaser/goreleaser-action@v2 + with: + version: latest + args: release --rm-dist + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}