chore: update auto-tag workflow to use snapshot mode and enhance debugging

- Changed GoReleaser execution argument from '--debug' to '--snapshot' for improved release management.
- Added GORELEASER_DEBUG environment variable to enable detailed logging during the release process.
- Introduced GORELEASER_CURRENT_TAG environment variable to capture the current version tag, enhancing visibility in the workflow.
This commit is contained in:
煎饼果子卷鲨鱼辣椒 2024-12-30 19:23:34 +08:00
parent c41ade9b88
commit 3050a6c0ad

View File

@ -156,7 +156,7 @@ jobs:
with:
distribution: goreleaser
version: latest
args: release --clean --timeout 60m --debug
args: release --clean --timeout 60m --snapshot
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION: ${{ steps.get_latest_tag.outputs.version }}
@ -166,6 +166,8 @@ jobs:
GOROOT: ${{ env.GOROOT }}
GOCACHE: ${{ github.workspace }}/.cache/go-build
GOMODCACHE: ${{ github.workspace }}/go/pkg/mod
GORELEASER_DEBUG: 1
GORELEASER_CURRENT_TAG: ${{ steps.get_latest_tag.outputs.version }}
# 添加错误检查步骤
- name: Check GoReleaser Output