Re-enable pypi publishing from releases

Aperta
#4,484 4 commenti 1 reazione 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 8 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
30/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
github-actions, python
Ambito
ci-cd, release

Direzione di ricerca

The disabled publish step is in .github/workflows/pypi.yml around lines 110-113, so start there and check which release trigger the workflow uses. Trusted publishing also needs a publisher configured in PyPI's project settings, which only a maintainer can do, so confirm access first. Done means the workflow publishes the package to PyPI on release without a stored API token, ideally behind a GitHub Environment approval gate.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

discussion :bulb:

Is your feature request related to a problem? Please describe.
Currently CodeChecker pypi versions are behind on released versions, because of a disabled workflow step. See:

https://github.com/Ericsson/codechecker/blob/22c5e34d30f17ad50a038c09db3149f1553087e9/.github/workflows/pypi.yml#L110-L113

Describe the solution you would like
Enable Pypi trusted publishing to re-enable the Github Workflow for easier publishing.
This can be combined with Github Environments, so a manual action (clicking a button/CI testing/...) is still required before the actual publishing is done.
For an example, see the release workflow for west from the Zephyr project.

Describe alternatives you have considered
Leave it up to the maintainers to do manual publishing, but this is error prone and requires additional effort.

Additional context
N/A

Lingua principale
Python
Stelle
2.6k
Fork
494
Merge medio
9g 2h
PR unite (30g)
23

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Ericsson/codechecker

Tutte le issue di Ericsson/codechecker

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.