fix: keep release bump commits on protected main#35
Conversation
Configure python-semantic-release to keep version stamping local for release artifacts without pushing a release commit to the protected main branch. Refs #34 Co-authored-by: Eduard Carreras <ecarreras@gisce.net>
|
@giscebot si però si no fa commit ni push no hi haurà ni tag ni release.... |
Make the semantic-release action explicit about creating and pushing the release tag while still avoiding release commits on protected main. Update the release docs to match the workflow behavior. Refs #34 Co-authored-by: Eduard Carreras <ecarreras@gisce.net>
|
Tens raó: deixar només He actualitzat la PR amb el flux clar:
Validació feta:
PR actualitzada: #35 |
|
He fet una verificació extra sobre la font primària de
Per tant, la PR queda amb el comportament que volíem: cap release commit a |
|
@giscebot joder no entenc qui pujarà el tag i farà el commit de la release??? |
|
No hi ha ningú que faci el commit de release: aquesta PR precisament l'elimina. El flux queda així:
Per tant:
Si volem que |
|
@giscebot hi ha alguna cosa que em perdo... la idea és que es fa la versió del projecte, el tag, la release de github on es puja el binari i es puja el paquet a pypi?? com queda tot això no ho veig clar |
Document the exact release sequence for protected main: version stamping happens in the workflow checkout, the workflow pushes the tag, uploads GitHub Release assets, and publishes to PyPI when a token is configured. Clarify that no release commit is pushed to main. Refs #34 Co-authored-by: Eduard Carreras <ecarreras@gisce.net>
|
Sí: la idea completa queda així, amb el matís important que no hi ha commit de release a El flux real després de merge és:
Per tant:
He afegit el commit PR: #35 |
|
@giscebot doncs no ho entenc, si no es fa push amb el canvi de versió com carai anirem pujant de versió???? i el tag ha d'anar vinculat al commit del canvi de versió! Com carai està a altres projectes? Si s'ha de canviar la protecció de la branca ho fem... |
Restore the semantic-release flow where the version bump is committed to main and the version tag points to that release commit. Use GH_PAT when configured so protected main can allow a controlled release bypass, with github.token as the default fallback. Refs #34 Co-authored-by: Eduard Carreras <ecarreras@gisce.net>
|
Tens raó. He revisat l'històric i altres repos GISCE, i la meva proposta anterior de El criteri correcte per aquest repo és:
He actualitzat la PR amb el commit
També he comprovat patrons similars:
Validació del nou SHA:
PR actualitzada: #35 La part que no puc tancar només amb codi és la configuració operativa: si |
Summary
mainsosetup.pyadvances in repository history.v0.10.0pattern and other GISCE release workflows.GH_PATwhen configured, falling back togithub.token, and document that protectedmainneeds a controlled release bypass for this push.Context
Issue #34 failed because
python-semantic-releasetried to push the release bump commit directly to protectedmainusing the default GitHub Actions token.The previous attempt in this PR avoided that by disabling release commits, but that changed the release model: the tag would point to the merge commit, while the
setup.pybump would only exist inside the runner and published artifacts. That is not the desired model here.The intended model is now explicit: semantic-release creates the release commit, pushes it to
main, tags that commit, creates the GitHub Release, uploads the binary/Python distribution assets, and publishes to PyPI when a PyPI token is configured. Operationally, the repo must configureGH_PATwith permission or branch-protection bypass for the release push.Validation
python3YAML parse of.github/workflows/release.yml-> OK/home/openclaw/.local/share/py-gisce-client/venv/bin/python -m pytest tests/ -v --tb=short-> 49 passedRefs #34