Skip to content

Commit

Permalink
update action to take effect on new tags only
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlovelltroy committed Jan 12, 2024
1 parent e3b87c3 commit f6e6060
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -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:

Expand All @@ -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:
Expand Down

0 comments on commit f6e6060

Please sign in to comment.