From 109a187e4cf900ae1e23ed303aa9bf24e4e0cc50 Mon Sep 17 00:00:00 2001 From: Alex Merry Date: Thu, 18 Apr 2024 10:58:14 +0100 Subject: [PATCH] Fix artifact download path for publish workflow 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. --- .github/workflows/publish.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 5fab8fb..22c350e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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 @@ -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