Skip to content

Commit

Permalink
More Goreleaser validation steps
Browse files Browse the repository at this point in the history
Signed-off-by: Karl Hepworth <karl@previousnext.com.au>
  • Loading branch information
Karl Hepworth committed Jun 16, 2024
1 parent 09e82ed commit dab71c2
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,24 @@ jobs:
-
name: Print version string
run: go run main.go version

-
name: Check GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: '~> v2'
args: check
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-
name: Check GoReleaser
uses: goreleaser/goreleaser-action@v6
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
with:
distribution: goreleaser
version: '~> v2'
args: release --clean --skip=docker --skip=homebrew
args: release --clean --skip=docker --skip=homebrew --skip=publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-
Expand Down

0 comments on commit dab71c2

Please sign in to comment.