From b8e028cab8ebfdec367ece2914dd44e7819f438f Mon Sep 17 00:00:00 2001 From: Lanly109 <1094916227@qq.com> Date: Tue, 8 Oct 2024 20:19:08 +0800 Subject: [PATCH] chore: cli release update --- .github/workflows/cli.yml | 2 +- .github/workflows/release.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cli.yml b/.github/workflows/cli.yml index 35e51bb..bcf04df 100644 --- a/.github/workflows/cli.yml +++ b/.github/workflows/cli.yml @@ -62,7 +62,7 @@ jobs: export LD_FLAGS="-w -s -X github.com/Lanly109/lan/cmd.Version=${COMMIT_ID::7}" go build -o "output/$BINARY_NAME" -trimpath -ldflags "$LD_FLAGS" . - name: Upload artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 if: ${{ !github.head_ref }} with: name: ${{ matrix.goos }}_${{ matrix.goarch }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 46b7da7..ae02362 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,6 +23,6 @@ jobs: uses: goreleaser/goreleaser-action@v2 with: version: latest - args: release --rm-dist + args: release --clean env: GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}