From 8624747c9ea8a600d3d60ad787582a2ecd21d22e Mon Sep 17 00:00:00 2001 From: futuretea <1913508671@qq.com> Date: Thu, 18 May 2023 22:18:36 +0800 Subject: [PATCH] Update goreleaser Signed-off-by: futuretea <1913508671@qq.com> --- .github/workflows/release.yml | 15 +++++++++------ .goreleaser.yml | 4 ++-- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 397440a..53de848 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,17 +22,20 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 - - name: Unshallow - run: git fetch --prune --unshallow + with: + fetch-depth: 0 + - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v4 with: - go-version: 1.20 + go-version: 1.20.4 + - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v3 + uses: goreleaser/goreleaser-action@v4 with: + distribution: goreleaser version: latest - args: release --rm-dist + args: release --clean env: # GitHub sets this automatically GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.goreleaser.yml b/.goreleaser.yml index 4cd6cb6..5a2fb79 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -25,7 +25,7 @@ checksum: name_template: '{{ .ProjectName }}_{{ .Version }}_SHA256SUMS' algorithm: sha256 release: -# If you want to manually examine the release before its live, uncomment this line: -# draft: true + # If you want to manually examine the release before its live, uncomment this line: + draft: true changelog: skip: true