Skip to content

Commit

Permalink
ci: fix upload of artifacts with the same name
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasberbuer committed Feb 14, 2024
1 parent 28b1888 commit 45753cb
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
run: pipx run build --sdist
- uses: actions/upload-artifact@v4
with:
name: builds
name: dist-sdist
path: dist/*.tar.gz

build-wheels:
Expand All @@ -65,7 +65,7 @@ jobs:
uses: pypa/[email protected]
- uses: actions/upload-artifact@v4
with:
name: builds
name: dist-wheels
path: wheelhouse/*.whl

publish:
Expand All @@ -74,15 +74,16 @@ jobs:
steps:
- uses: actions/download-artifact@v4
with:
# unpacks builds artifact into dist/
name: builds
# unpacks builds artifacts into dist/
name: dist-*
path: dist
merge-multiple: true
- name: Publish package to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
skip_existing: true
repository-url: https://test.pypi.org/legacy/
skip-existing: true
- name: Publish package to PyPI
if: github.event_name == 'release' && github.event.action == 'published'
uses: pypa/gh-action-pypi-publish@release/v1
Expand Down

0 comments on commit 45753cb

Please sign in to comment.