Skip to content

Commit 5a9d76e

Browse files
committed
ci: upload all release files to pypi in the same action
1 parent 36fd9b8 commit 5a9d76e

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -138,28 +138,21 @@ jobs:
138138
needs: ["build-sdist", "build-wheels"]
139139
runs-on: ubuntu-latest
140140
steps:
141-
- name: Download sdist and wheel artifacts
141+
- name: Download artifacts
142142
uses: actions/download-artifact@v4
143143
with:
144144
path: ${{ github.ref_name }}
145145
merge-multiple: true
146146

147-
- name: Upload sdist to PyPI
147+
- name: Upload files to PyPI
148148
uses: pypa/gh-action-pypi-publish@release/v1
149149
with:
150150
password: ${{ secrets.PYPI_API_TOKEN }}
151-
packages_dir: ${{ github.ref_name }}/sdist/
152-
print_hash: true
153-
154-
- name: Upload wheels to PyPI
155-
uses: pypa/gh-action-pypi-publish@release/v1
156-
with:
157-
password: ${{ secrets.PYPI_API_TOKEN }}
158-
packages_dir: ${{ github.ref_name }}/wheels/
159-
print_hash: true
151+
packages-dir: ${{ github.ref_name }}
152+
print-hash: true
160153

161154
- name: Create GitHub release
162155
uses: softprops/action-gh-release@v1
163156
with:
164-
files: ${{ github.ref_name }}/sdist/*.tar.gz
157+
files: ${{ github.ref_name }}/*.tar.gz
165158
fail_on_unmatched_files: true

0 commit comments

Comments
 (0)