Skip to content

Commit

Permalink
CI: Fix PyPI release action
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dopplershift committed Jan 21, 2022
1 parent 94ef0e0 commit df6f7c5
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ jobs:
- name: Save built packages as artifact
uses: actions/upload-artifact@v2
with:
name: ${{ runner.os }}-${{ steps.setup.outputs.python-version }}
name: packages-${{ runner.os }}-${{ steps.setup.outputs.python-version }}
path: dist/
if-no-files-found: error
retention-days: 5

publish:
Expand All @@ -48,8 +49,11 @@ jobs:
steps:
- name: Download packages
uses: actions/download-artifact@v2
with:
path: ./dist

- name: Consolidate packages for upload
run: |
mkdir dist
cp packages-*/* dist/
- name: Publish Package
uses: pypa/gh-action-pypi-publish@v1.5.0
Expand Down

0 comments on commit df6f7c5

Please sign in to comment.