Skip to content

Commit

Permalink
build: update goreleaser actions
Browse files Browse the repository at this point in the history
  • Loading branch information
zze0s committed Dec 10, 2024
1 parent 3acc964 commit 0b463db
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,19 +73,21 @@ jobs:
cache: true

- name: Run GoReleaser build
uses: goreleaser/goreleaser-action@v5
if: ${{ github.event_name == 'pull_request' }}
if: github.event_name == 'pull_request'
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: latest
args: release --clean --skip=validate --skip=publish --parallelism 5 --snapshot
version: "~> v2"
args: release --clean --skip=validate,publish --parallelism 5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Run GoReleaser build and publish tags
uses: goreleaser/goreleaser-action@v5
if: startsWith(github.ref, 'refs/tags/')
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: latest
version: "~> v2"
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 0b463db

Please sign in to comment.