Skip to content

fix: use GORELEASER_CURRENT_TAG for RC release detection#26

Draft
miguelsanchez-upsun wants to merge 1 commit intomainfrom
cli-114-fix-cloudsmith-execution-on-release-candidate-releases
Draft

fix: use GORELEASER_CURRENT_TAG for RC release detection#26
miguelsanchez-upsun wants to merge 1 commit intomainfrom
cli-114-fix-cloudsmith-execution-on-release-candidate-releases

Conversation

@miguelsanchez-upsun
Copy link
Contributor

Summary

Fixes RC release builds by ensuring the Makefile correctly detects pre-release versions and skips Cloudsmith uploads.

Changes

  • Updated Makefile to use GORELEASER_CURRENT_TAG (set by GitHub Actions) instead of git describe --always, which was returning commit hashes instead of tag
    names in shallow checkouts
  • Added shebang and error handling to cloudsmith.sh for safety

Result

RC releases (e.g., v5.10.0-rc1) now properly skip Cloudsmith uploads instead of failing when attempting to run the upload script.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant