Skip to content

Fix release.yml: commit version bump only after a successful signed build - #59

Merged
Marcogn merged 1 commit into
mainfrom
claude/hackdex-tracker-phase-1-qmwkoz
Aug 21, 2026
Merged

Fix release.yml: commit version bump only after a successful signed build#59
Marcogn merged 1 commit into
mainfrom
claude/hackdex-tracker-phase-1-qmwkoz

Conversation

@Marcogn

@Marcogn Marcogn commented Aug 20, 2026

Copy link
Copy Markdown
Owner

Summary

Su richiesta dell'utente, porto qui lo stesso fix appena applicato su HackDex-Tracker (PR #4), dove il bug si è verificato per davvero: release.yml faceva commit+push del bump versionName/versionCode e del taglio CHANGELOG.md prima di tentare la build firmata. Se la build/firma fallisce dopo quel commit (password keystore sbagliata, secret scaduto, ecc.), main resta bloccato con una versione "bruciata" — bump già applicato, [Unreleased] già svuotato — ma senza che sia mai stata pubblicata una vera GitHub Release, e ogni retry successivo fallisce subito perché non c'è più contenuto nuovo da tagliare.

Su questo repo le release fatte finora sono sempre andate a buon fine (bug latente, non ancora esploso qui), ma la struttura è identica a quella di HackDex-Tracker quindi lo stesso rischio esiste.

Fix

Stesso riordino: bump versione/changelog restano modifiche locali non committate durante tutta la build/firma; git commit/git push verso main è ora l'ultimo step del workflow, eseguito solo dopo che gh release create è andato a buon fine. Aggiornata anche la documentazione (docs/implementation-decisions.md, CLAUDE.md — punto 4 della sequenza "Cutting an actual release", CHANGELOG.md).

Test plan

  • YAML validato con python3 -c "import yaml; yaml.safe_load(...)".
  • Verrà confermato end-to-end al prossimo Release reale di questo progetto.

Generated by Claude Code

…uild

Same latent bug found on the sibling HackDex-Tracker project, which hit it
for real on its first release run: the workflow committed and pushed the
versionName/versionCode bump and cut CHANGELOG.md straight to main
*before* attempting the signed build. If that build fails (bad keystore
password, expired secret, etc.), main is left permanently bumped with no
GitHub Release ever published for that version, and every retry then
fails immediately because [Unreleased] is already empty.

This project's own releases have all succeeded so far, but the same
reordering closes the latent gap: the version-bump/changelog-cut edits
stay local/uncommitted through the build, and the commit+push only
happens after gh release create actually succeeds.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XHyrsY7NaqPBFy7T7fxCc5
@Marcogn
Marcogn marked this pull request as ready for review August 21, 2026 04:24
@Marcogn
Marcogn merged commit 5bc9ef9 into main Aug 21, 2026
1 check passed
@Marcogn
Marcogn deleted the claude/hackdex-tracker-phase-1-qmwkoz branch August 21, 2026 04:24
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.

2 participants