Skip to content

Releases: pypa/gh-action-pypi-publish

v1.8.3

22 Mar 15:33
v1.8.3
48b317d
Compare
Choose a tag to compare

What's New

This release improves the logging detalization of which authentication mode is selected when the action runs. It surfaces this detail to the workflow run summary page as annotations. The change was contributed by @woodruffw in #136.

Full Diff: v1.8.2...v1.8.3

v1.8.2

22 Mar 14:33
v1.8.2
f3ce18f
Compare
Choose a tag to compare

What's Changed

This release started printing out full OIDC error messages to console, instead of just one line -- by @woodruffw in #134.

Full Diff: v1.8.1...v1.8.2

v1.8.1

16 Mar 09:41
v1.8.1
a3a3baf
Compare
Choose a tag to compare

🐛 What's Fixed

💔 Unfortunately, a tiny mistake in v1.8.0 caused a far-reaching regression for the most used code path.
❗ But don't worry, it's fixed now thanks to @njzjz who promptly spotted it and @zhongjiajie who sent a bugfix.

🙌 New Contributors

Full Diff: v1.8.0...v1.8.1

v1.8.0

16 Mar 02:32
v1.8.0
8ef2b3d
Compare
Choose a tag to compare

The Coolest Release Ever!

In this release, @woodruffw implemented support for secretless OIDC-based publishing to PyPI-like package indexes. The OIDC flow is activated when neither username nor password action inputs are set.

The OIDC “token exchange”, is an authentication technique that PyPI (and TestPyPI, and hopefully some future others) supports as an alternative to long-lived username/password combinations or long-lived API tokens.

IMPORTANT: The PyPI-side configuration is only available to participants of the private beta test. Please, only try out the zero-config mode if you are a beta test participant having followed the PyPI configuration instructions.
It's gone GA during Python 2023 and is available to everyone now.

Setup prerequisites: https://github.com/marketplace/actions/pypi-publish#trusted-publishing
PyPI's documentation: https://pypi.org/help/#trusted-publishers
Beta test enrollment: pypi/warehouse#12965

New Contributors

Full Diff: v1.7.1...v1.8.0

v1.7.1

11 Mar 02:17
v1.7.1
22b4d1f
Compare
Choose a tag to compare

Regression?

There was a small setback with v1.7.0 — the snake_case fallbacks didn't work because the check for the kebab-case env vars with default values set was always truthy. This bugfix release promptly fixes that.

Full Diff: v1.7.0...v1.7.1

v1.7.0

11 Mar 01:27
v1.7.0
7104b6e
Compare
Choose a tag to compare

What should I care about?

TL;DR The action input names have been converted to use kebab-case and marked deprecated. But the old names still work.

This is made to align the public API with the de-facto conventions in the ecosystem. We've used snake_case names, which the maintainer considers a historical mistake. New kebab-case inputs will make the end-users' workflows look more consistent and and visually distinguishable from other identifiers one may encounter in YAML.

There is no timeline for removing the old names, but it will happen in v3 or later versions of the action. If the maintainer doesn't forget to do this, that is.

The patch is here: #125.

Full Diff: v1.6.5...v1.7.0

v1.6.5

10 Mar 23:03
v1.6.5
32b5e93
Compare
Choose a tag to compare

What's Changed

  • Added an explicit warning when the password passed into the action is empty — thanks @colindean

New Contributors

Full Diff: v1.6.4...v1.6.5

v1.6.4

07 Dec 01:56
v1.6.4
c7f29f7
Compare
Choose a tag to compare

oh, boi! again?

This is the last one tonight, promise! It fixes this embarrassing bug that was actually caught by the CI but got overlooked due to the lack of sleep.
TL;DR GH passed $HOME from the external env into the container and that tricked the Python's site module to think that the home directory is elsewhere, adding non-existent paths to the env vars. See #115.

Full Diff: v1.6.3...v1.6.4

v1.6.3

06 Dec 23:26
v1.6.3
e71a4a4
Compare
Choose a tag to compare

Another Release!? Why?

In #112 (comment), it was discovered that passing a $PATH variable even breaks the shebang. So this version adds more safeguards to make sure it keeps working with a fully broken $PATH.

Full Diff: v1.6.2...v1.6.3

v1.6.2

06 Dec 22:43
v1.6.2
ce291dc
Compare
Choose a tag to compare

What's Fixed

  • Made the $PATH and $PYTHONPATH environment variables resilient to broken values passed from the host runner environment, which previously allowed the users to accidentally break the container's internal runtime as reported in #112

Internal Maintenance Improvements

New Contributors

Full Diff: v1.6.1...v1.6.2