From ae56f95b24c12aac138211496f69d03909493f57 Mon Sep 17 00:00:00 2001 From: admin Date: Sat, 4 Apr 2026 01:40:27 +0800 Subject: [PATCH] build: update goreleaser action to use build with snapshot and clean args --- .github/workflows/build.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 71a5f2a..b02bca2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -41,7 +41,7 @@ jobs: uses: goreleaser/goreleaser-action@v7 if: "!startsWith(github.ref, 'refs/tags/')" with: - args: release --clean + args: build --snapshot --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -56,13 +56,13 @@ jobs: ./dist/default_darwin_arm64/${{ env.APP_NAME }} ./dist/default_windows_amd64_v1/${{ env.APP_NAME }}.exe - # - name: Release - # uses: goreleaser/goreleaser-action@v6 - # if: startsWith(github.ref, 'refs/tags/') - # with: - # args: release --clean - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Release + uses: goreleaser/goreleaser-action@v6 + if: startsWith(github.ref, 'refs/tags/') + with: + args: release --clean + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # - name: Docker - Set up Buildx # id: buildx