gh-action-pypi-publish
gh-action-pypi-publish copied to clipboard
InvalidDistribution: Unknown distribution format: 'artifact' when not specifying an artifact name
An error InvalidDistribution: Unknown distribution format: 'artifact' is thrown when artifact upload/download is used with the default name.
jobs:
build:
- name: Store the distribution packages
uses: actions/upload-artifact@v3
with:
# name: python-package-distributions
path: dist/
publish-to-testpypi:
steps:
- name: Download all the dists
uses: actions/download-artifact@v3
with:
# name: python-package-distributions
path: dist/
- name: Publish distribution 📦 to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
Warning: It looks like there are no Python distribution packages to publish in the directory 'dist/'. Please verify that they are in place should you face this problem.
Checking dist/artifact: ERROR InvalidDistribution: Unknown distribution format: 'artifact'