-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: fix upload of artifacts with the same name
- Loading branch information
1 parent
28b1888
commit 45753cb
Showing
1 changed file
with
7 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -65,7 +65,7 @@ jobs: | |
uses: pypa/[email protected] | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: builds | ||
name: dist-wheels | ||
path: wheelhouse/*.whl | ||
|
||
publish: | ||
|
@@ -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 | ||
|