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: