diff options
Diffstat (limited to '.github/workflows/publish.yml')
| -rw-r--r-- | .github/workflows/publish.yml | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 4fc675c..552aaa7 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,17 +1,17 @@ name: Publish -# Publica en PyPI cuando se publica un release de GitHub. +# Publishes to PyPI when a GitHub release is published. # -# No hay ningún token guardado: PyPI confía en este workflow por OIDC -# (trusted publishing). Del lado de pypi.org hay que haber dado de alta un -# "pending publisher" con exactamente estos cuatro datos: +# No token is stored anywhere: PyPI trusts this workflow through OIDC +# (trusted publishing). On pypi.org a "pending publisher" must have been +# registered with exactly these four values: # # Owner ElvisClaros # Repository claude-logbook # Workflow publish.yml # Environment pypi # -# Si alguno no coincide, PyPI rechaza el upload. +# If any of them does not match, PyPI rejects the upload. on: release: @@ -28,7 +28,7 @@ jobs: url: https://pypi.org/p/claude-logbook permissions: - id-token: write # lo único que habilita el trusted publishing + id-token: write # the only thing trusted publishing needs steps: - uses: actions/checkout@v4 @@ -37,10 +37,10 @@ jobs: with: python-version: "3.13" - # El número vive en claude_logbook/__init__.py y es fácil olvidarse de - # subirlo. Mejor fallar acá que publicar algo mal rotulado: una versión - # subida a PyPI no se puede reemplazar nunca, solo yankear. - - name: El tag coincide con __version__ + # The number lives in claude_logbook/__init__.py and it is easy to forget + # to bump it. Better to fail here than publish something mislabelled: a + # version uploaded to PyPI can never be replaced, only yanked. + - name: Tag matches __version__ run: | tag="${GITHUB_REF_NAME#v}" ver="$(python -c 'import claude_logbook; print(claude_logbook.__version__)')" @@ -52,7 +52,7 @@ jobs: python -m pip install --upgrade build python -m build - - name: Los artefactos están sanos + - name: Artifacts are sound run: | python -m pip install --upgrade twine twine check dist/* |