Skip to content

Commit

Permalink
Merge pull request #717 from altendky/pypi_upload
Browse files Browse the repository at this point in the history
add pypa/gh-action-pypi-publish
  • Loading branch information
miniupnp committed May 13, 2024
2 parents ff7d718 + 8a46803 commit add6ced
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/miniupnpc_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit add6ced

Please sign in to comment.