Merge pull request #717 from altendky/pypi_upload

add pypa/gh-action-pypi-publish
This commit is contained in:
Thomas BERNARD 2024-05-13 18:30:57 +02:00 committed by GitHub
commit add6ced1e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 26 additions and 0 deletions

View File

@ -245,3 +245,29 @@ jobs:
name: wheel-${{ env.FILE_NAME }} name: wheel-${{ env.FILE_NAME }}
path: ./dist path: ./dist
if-no-files-found: error if-no-files-found: error
upload:
name: 🚀 Upload
runs-on: ubuntu-latest
needs: build
steps:
- name: Download results
uses: actions/download-artifact@v4
with:
merge-multiple: true
pattern: wheel-*
path: dist/
- name: List artifacts
run: |
ls -la dist/
- name: Publish to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist/
print-hash: true
skip-existing: true
verbose: true