build: update goreleaser action to use build with snapshot and clean args

This commit is contained in:
admin 2026-04-04 01:40:27 +08:00
parent 3f35af5fba
commit ae56f95b24

View File

@ -41,7 +41,7 @@ jobs:
uses: goreleaser/goreleaser-action@v7 uses: goreleaser/goreleaser-action@v7
if: "!startsWith(github.ref, 'refs/tags/')" if: "!startsWith(github.ref, 'refs/tags/')"
with: with:
args: release --clean args: build --snapshot --clean
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@ -56,13 +56,13 @@ jobs:
./dist/default_darwin_arm64/${{ env.APP_NAME }} ./dist/default_darwin_arm64/${{ env.APP_NAME }}
./dist/default_windows_amd64_v1/${{ env.APP_NAME }}.exe ./dist/default_windows_amd64_v1/${{ env.APP_NAME }}.exe
# - name: Release - name: Release
# uses: goreleaser/goreleaser-action@v6 uses: goreleaser/goreleaser-action@v6
# if: startsWith(github.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/')
# with: with:
# args: release --clean args: release --clean
# env: env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: Docker - Set up Buildx # - name: Docker - Set up Buildx
# id: buildx # id: buildx