Skip to content

Commit be5d077

Browse files
committed
Review GitHub workflow publish release to PyPI:
- PyPI is now enforcing PEP 625 distribution file names on upload - Revert 59db00b: Remove disabling metadata check
1 parent 8fab00a commit be5d077

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/publish-to-pypi.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
id-token: write
1313
env:
1414
SDIST: python-icat-${{ github.event.release.tag_name }}.tar.gz
15+
PYPI_SDIST: python_icat-${{ github.event.release.tag_name }}.tar.gz
1516
steps:
1617
- name: Fetch assets
1718
uses: cb80/dlassets@latest
@@ -24,9 +25,8 @@ jobs:
2425
- name: Copy distfile to dist directory
2526
run: |
2627
mkdir -p dist
27-
cp -p assets/$SDIST dist
28+
cp -p assets/$SDIST dist/$PYPI_SDIST
2829
- name: Publish package to PyPI
2930
uses: pypa/gh-action-pypi-publish@release/v1
3031
with:
3132
verbose: true
32-
verify-metadata: false

0 commit comments

Comments
 (0)