Skip to content

Commit df6f7c5

Browse files
committed
CI: Fix PyPI release action
Need to handle the fact that with multiple artificats, they're unpacked into a directory for each. Therefore we need steps to consolidate into the dist/ directory.
1 parent 94ef0e0 commit df6f7c5

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@ jobs:
3434
- name: Save built packages as artifact
3535
uses: actions/upload-artifact@v2
3636
with:
37-
name: ${{ runner.os }}-${{ steps.setup.outputs.python-version }}
37+
name: packages-${{ runner.os }}-${{ steps.setup.outputs.python-version }}
3838
path: dist/
39+
if-no-files-found: error
3940
retention-days: 5
4041

4142
publish:
@@ -48,8 +49,11 @@ jobs:
4849
steps:
4950
- name: Download packages
5051
uses: actions/download-artifact@v2
51-
with:
52-
path: ./dist
52+
53+
- name: Consolidate packages for upload
54+
run: |
55+
mkdir dist
56+
cp packages-*/* dist/
5357
5458
- name: Publish Package
5559
uses: pypa/gh-action-pypi-publish@v1.5.0

0 commit comments

Comments
 (0)