Skip to content

Commit

Permalink
ci: upload all release files to pypi in the same action
Browse files Browse the repository at this point in the history
  • Loading branch information
radhermit committed Feb 2, 2024
1 parent 36fd9b8 commit 5a9d76e
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,28 +138,21 @@ jobs:
needs: ["build-sdist", "build-wheels"]
runs-on: ubuntu-latest
steps:
- name: Download sdist and wheel artifacts
- name: Download artifacts
uses: actions/download-artifact@v4
with:
path: ${{ github.ref_name }}
merge-multiple: true

- name: Upload sdist to PyPI
- name: Upload files to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
packages_dir: ${{ github.ref_name }}/sdist/
print_hash: true

- name: Upload wheels to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
packages_dir: ${{ github.ref_name }}/wheels/
print_hash: true
packages-dir: ${{ github.ref_name }}
print-hash: true

- name: Create GitHub release
uses: softprops/action-gh-release@v1
with:
files: ${{ github.ref_name }}/sdist/*.tar.gz
files: ${{ github.ref_name }}/*.tar.gz
fail_on_unmatched_files: true

0 comments on commit 5a9d76e

Please sign in to comment.