From e5f169aabb0cfb9f15bb14e868bfbefd95a75676 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Pokorn=C3=BD?= Date: Tue, 21 Dec 2021 09:04:37 +0100 Subject: [PATCH] Tune GoReleaser workflow (#36) --- .github/workflows/goreleaser.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index b37fce3..c54f62f 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -1,18 +1,23 @@ -name: goreleaser +name: Release on: - workflow_dispatch: + push: + tags: + - "*" permissions: contents: write jobs: goreleaser: + if: startsWith(github.ref, 'refs/tags/') runs-on: ubuntu-latest + steps: - uses: actions/checkout@v2 with: fetch-depth: 0 + - uses: actions/setup-go@v2 with: go-version: 1.17