From e070a2dafd7021e0d40c11da6ef096fbee483e49 Mon Sep 17 00:00:00 2001 From: Kenichi Kamiya Date: Mon, 13 May 2024 12:29:45 +0900 Subject: [PATCH] chore: add build only step for testing triggers --- .github/workflows/release.yaml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 57bc4a9..3dca87a 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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