Merge pull request #717 from altendky/pypi_upload
add pypa/gh-action-pypi-publish
This commit is contained in:
commit
add6ced1e9
|
@ -245,3 +245,29 @@ jobs:
|
|||
name: wheel-${{ env.FILE_NAME }}
|
||||
path: ./dist
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue