From f6e6060caa0865952c54bcde76ae7d4a44d5be33 Mon Sep 17 00:00:00 2001 From: Alex Lovell-Troy Date: Fri, 12 Jan 2024 13:53:41 -0500 Subject: [PATCH] update action to take effect on new tags only --- .github/workflows/go.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 9ec5910..dd2bce4 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -1,13 +1,12 @@ # This workflow will build a golang project # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go -name: Go +name: Release with goreleaser on: push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] + tags: + - v* jobs: @@ -21,7 +20,7 @@ jobs: fetch-tags: 1 fetch-depth: 1 - name: Release with goreleaser - uses: goreleaser/goreleaser-action@v5.0.0 + uses: goreleaser/goreleaser-action@v5 env: GITHUB_TOKEN: ${{ github.token }} with: