Skip to content

Commit

Permalink
publish to PyPI on each tag
Browse files Browse the repository at this point in the history
  • Loading branch information
fedebenelli committed Oct 30, 2024
1 parent 88c6998 commit 97a4ddd
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,27 @@ jobs:
- name: Install tox
run: pip install tox tox-gh-actions
- name: Test with tox
run: tox -r
run: tox -r

publish-to-pypi:
name: >-
Publish Python 🐍 distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
needs:
- test-linux
- test-windows
- test-macos
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/ugropy
permissions:
id-token: write
steps:
- name: Download all the dists
uses: actions/download-artifact@v4
with:
name: python-package-distributions
path: dist/
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 97a4ddd

Please sign in to comment.