Skip to content

Commit

Permalink
Add build only step
Browse files Browse the repository at this point in the history
  • Loading branch information
dee-kryvenko committed Sep 15, 2024
1 parent 3e5bd3d commit 5453e7b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,17 @@ jobs:
with:
go-version: '1.23'

- name: Run GoReleaser (build only)
if: github.event_name != 'workflow_dispatch'
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: '~> v2'
args: build --clean
workdir: .build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Run GoReleaser
if: github.event_name == 'workflow_dispatch'
uses: goreleaser/goreleaser-action@v6
Expand Down

0 comments on commit 5453e7b

Please sign in to comment.