Skip to content

Commit

Permalink
chore: add build only step for testing triggers
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick committed May 13, 2024
1 parent c7248cd commit e070a2d
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,23 @@ jobs:
go-version: ${{ matrix.version }}
check-latest: true
cache: true
- name: Build and package with GoReleaser
- name: Build and package with GoReleaser for testing
uses: goreleaser/goreleaser-action@v3
with:
distribution: goreleaser
version: latest
args: --skip-publish
args: release --clean
- uses: actions/upload-artifact@v4
with:
name: dist
path: dist/
- name: Build and package with GoReleaser for deploy
if: startsWith(github.ref, 'refs/tags/')
uses: goreleaser/goreleaser-action@v3
with:
distribution: goreleaser
version: latest
args: --skip-publish
- name: Release
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v1
Expand Down

0 comments on commit e070a2d

Please sign in to comment.