Skip to content

Commit

Permalink
Fix artifact download path for publish workflow
Browse files Browse the repository at this point in the history
It turns out that if you don't specify a specific artifact name to
download-artifact, it creates subdirectories for each artifact, which
then confuses the pypi publish action.
  • Loading branch information
amerry committed Apr 18, 2024
1 parent 68accad commit 109a187
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
run: python -m hatch build
- uses: actions/upload-artifact@v4
with:
name: dist
path: dist/
if-no-files-found: error

Expand All @@ -40,6 +41,7 @@ jobs:
steps:
- uses: actions/download-artifact@v4
with:
name: dist
path: dist
- name: Push package distributions to PyPI
uses: pypa/gh-action-pypi-publish@v1.8.14

0 comments on commit 109a187

Please sign in to comment.