From 81ff63779b55c1cbaeb1187653cdbe467cd03716 Mon Sep 17 00:00:00 2001 From: Christian Dupuis Date: Mon, 17 Oct 2022 13:33:15 +0200 Subject: [PATCH] Add goreleaser GitHub action Signed-off-by: Christian Dupuis --- .github/workflows/goreleaser.yaml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/goreleaser.yaml diff --git a/.github/workflows/goreleaser.yaml b/.github/workflows/goreleaser.yaml new file mode 100644 index 0000000..5525d62 --- /dev/null +++ b/.github/workflows/goreleaser.yaml @@ -0,0 +1,28 @@ +name: goreleaser + +on: + push: + tags: + - 'v*.*.*' + +jobs: + goreleaser: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Set up Go + uses: actions/setup-go@v3 + with: + go-version: 1.19 + + - name: Run GoReleaser + uses: goreleaser/goreleaser-action@v3 + with: + distribution: goreleaser + args: release --rm-dist + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}