Skip to content

Commit 2602d2e

Browse files
committed
ci: Update artifact names and use trusted publishing
1 parent d251706 commit 2602d2e

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

.github/workflows/publish.yml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ jobs:
3939

4040
- uses: actions/upload-artifact@v4
4141
with:
42-
path: ./wheelhouse/*.whl
42+
name: wheels-${{ matrix.os }}
43+
path: wheelhouse/*.whl
4344

4445

4546
build_sdist:
@@ -63,6 +64,7 @@ jobs:
6364

6465
- uses: actions/upload-artifact@v4
6566
with:
67+
name: wheels-sdist
6668
path: dist/*.tar.gz
6769

6870

@@ -71,15 +73,7 @@ jobs:
7173
runs-on: ubuntu-latest
7274

7375
steps:
74-
- uses: actions/download-artifact@v4
75-
with:
76-
# unpacks default artifact into dist/
77-
# if `name: artifact` is omitted, the action will create extra parent dir
78-
name: artifact
79-
path: dist
80-
81-
- uses: pypa/[email protected]
82-
with:
83-
user: __token__
84-
password: ${{ secrets.PYPI_API_TOKEN }}
85-
# To test: repository_url: https://test.pypi.org/legacy/
76+
- uses: actions/download-artifact@v5
77+
- name: Publish distribution 📦 to PyPI
78+
uses: pypa/gh-action-pypi-publish@release/v1
79+

0 commit comments

Comments
 (0)