mirror of
https://github.com/yuaotian/go-cursor-help.git
synced 2025-06-08 12:32:06 +08:00
chore: update GoReleaser configuration and enhance auto-tag workflow
- Added 'go mod download' step to ensure dependencies are available before builds. - Introduced debug flag in GoReleaser execution for improved troubleshooting. - Added error checking step to capture GoReleaser output and configuration details on failure. - Modified build summary step to reflect GPG signing status as disabled, streamlining the release process.
This commit is contained in:
parent
f0f77352ae
commit
bf6adcbac2
23
.github/workflows/auto-tag-release.yml
vendored
23
.github/workflows/auto-tag-release.yml
vendored
@ -162,7 +162,7 @@ jobs:
|
||||
with:
|
||||
distribution: goreleaser
|
||||
version: latest
|
||||
args: release --clean --timeout 60m --skip-sign
|
||||
args: release --clean --timeout 60m --skip-sign --debug
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
VERSION: ${{ steps.get_latest_tag.outputs.version }}
|
||||
@ -173,6 +173,23 @@ jobs:
|
||||
GOCACHE: ${{ github.workspace }}/.cache/go-build
|
||||
GOMODCACHE: ${{ github.workspace }}/go/pkg/mod
|
||||
|
||||
# 添加错误检查步骤
|
||||
- name: Check GoReleaser Output
|
||||
if: failure()
|
||||
run: |
|
||||
echo "::group::GoReleaser Debug Info"
|
||||
cat dist/artifacts.json || true
|
||||
echo "::endgroup::"
|
||||
|
||||
echo "::group::GoReleaser Config"
|
||||
cat .goreleaser.yml
|
||||
echo "::endgroup::"
|
||||
|
||||
echo "::group::Environment Info"
|
||||
go version
|
||||
go env
|
||||
echo "::endgroup::"
|
||||
|
||||
- name: Set Release Version
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
run: |
|
||||
@ -214,14 +231,14 @@ jobs:
|
||||
run: |
|
||||
echo "::error::Release process failed"
|
||||
|
||||
# 添加构建摘要步骤
|
||||
# 修改构建摘要步骤
|
||||
- name: Build Summary
|
||||
if: always()
|
||||
run: |
|
||||
echo "## Build Summary" >> $GITHUB_STEP_SUMMARY
|
||||
echo "- Go Version: $(go version)" >> $GITHUB_STEP_SUMMARY
|
||||
echo "- Release Version: ${VERSION:-N/A}" >> $GITHUB_STEP_SUMMARY
|
||||
echo "- GPG Signing: ${{ steps.import_gpg.outcome == 'success' && 'Enabled' || 'Disabled' }}" >> $GITHUB_STEP_SUMMARY
|
||||
echo "- GPG Signing: Disabled" >> $GITHUB_STEP_SUMMARY
|
||||
echo "- Build Status: ${{ job.status }}" >> $GITHUB_STEP_SUMMARY
|
||||
|
||||
if [ -d "dist" ]; then
|
||||
|
@ -1,6 +1,7 @@
|
||||
before:
|
||||
hooks:
|
||||
- go mod tidy
|
||||
- go mod download
|
||||
|
||||
builds:
|
||||
- id: cursor-id-modifier
|
||||
@ -35,75 +36,11 @@ archives:
|
||||
{{- if eq .Arch "amd64" }}x64{{ end }}
|
||||
{{- if eq .Arch "386" }}x86{{ end }}
|
||||
{{- if eq .Arch "arm64" }}arm64{{ end }}
|
||||
{{- if and (eq .Os "darwin") (eq .Arch "amd64") }}_intel{{ end }}
|
||||
{{- if and (eq .Os "darwin") (eq .Arch "arm64") }}_apple_silicon{{ end }}
|
||||
|
||||
checksum:
|
||||
name_template: 'checksums.txt'
|
||||
algorithm: sha256
|
||||
|
||||
# signs:
|
||||
# - cmd: gpg
|
||||
# args:
|
||||
# - "--batch"
|
||||
# - "--local-user"
|
||||
# - "{{ .Env.GPG_FINGERPRINT }}"
|
||||
# - "--output"
|
||||
# - "${signature}"
|
||||
# - "--detach-sign"
|
||||
# - "${artifact}"
|
||||
# artifacts: all
|
||||
|
||||
changelog:
|
||||
sort: asc
|
||||
use: github
|
||||
groups:
|
||||
- title: Features
|
||||
regexp: "^.*feat[(\\w)]*:+.*$"
|
||||
order: 0
|
||||
- title: 'Bug fixes'
|
||||
regexp: "^.*fix[(\\w)]*:+.*$"
|
||||
order: 1
|
||||
- title: Others
|
||||
order: 999
|
||||
filters:
|
||||
exclude:
|
||||
- '^docs:'
|
||||
- '^test:'
|
||||
- '^ci:'
|
||||
- Merge pull request
|
||||
- Merge branch
|
||||
|
||||
release:
|
||||
github:
|
||||
owner: dacrab
|
||||
name: go-cursor-help
|
||||
draft: false
|
||||
prerelease: auto
|
||||
mode: replace
|
||||
header: |
|
||||
## Cursor ID Modifier {{ .Version }}
|
||||
|
||||
### Supported Platforms
|
||||
- Windows: x64, x86
|
||||
- macOS: Intel (x64), Apple Silicon (M1/M2)
|
||||
- Linux: x64, x86, ARM64
|
||||
|
||||
See [CHANGELOG](CHANGELOG.md) for more details.
|
||||
footer: |
|
||||
**Full Changelog**: https://github.com/dacrab/go-cursor-help/compare/{{ .PreviousTag }}...{{ .Tag }}
|
||||
|
||||
## Quick Installation
|
||||
|
||||
**Linux/macOS**:
|
||||
```bash
|
||||
curl -fsSL https://raw.githubusercontent.com/dacrab/go-cursor-help/master/scripts/install.sh | sudo bash
|
||||
```
|
||||
|
||||
**Windows** (PowerShell Admin):
|
||||
```powershell
|
||||
irm https://raw.githubusercontent.com/dacrab/go-cursor-help/master/scripts/install.ps1 | iex
|
||||
```
|
||||
|
||||
snapshot:
|
||||
name_template: "{{ incpatch .Version }}-next"
|
||||
|
Loading…
x
Reference in New Issue
Block a user