Skip to content

Commit ac9a9aa

Browse files
Juan Pablo Mansonclaude
andcommitted
Fix PyPI publish workflow: update pinned publish action
The publish step was pinned to a 2021 revision of pypa/gh-action-pypi-publish, whose bundled twine rejects the `Metadata-Version: 2.5` that current hatchling emits: InvalidDistribution: Invalid distribution metadata: '2.5' is not a valid metadata version This made the v0.2.3 release fail to publish. Pin the action to v1.14.2 and refresh checkout/setup-python to versions that still run on a supported Node runtime. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent f579e5a commit ac9a9aa

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/python-publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ jobs:
2121
runs-on: ubuntu-latest
2222

2323
steps:
24-
- uses: actions/checkout@v3
24+
- uses: actions/checkout@v4
2525
- name: Set up Python
26-
uses: actions/setup-python@v3
26+
uses: actions/setup-python@v5
2727
with:
2828
python-version: '3.x'
2929
- name: Install dependencies
@@ -33,7 +33,7 @@ jobs:
3333
- name: Build package
3434
run: python -m build
3535
- name: Publish package
36-
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
36+
uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2
3737
with:
3838
user: __token__
3939
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)