Skip to content

Commit

Permalink
Use trusted publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
dtmilano committed Oct 28, 2024
1 parent db3ca52 commit ba60fe3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/pythonpublish-pep517.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,21 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine pep517
- name: Build and publish
- name: build
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python -m pep517.build .
twine upload dist/*
#twine upload dist/*
- name: >-
Publish Python 🐍 distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
needs:
- build
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/viaduc # Replace <package-name> with your PyPI project name
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = viaduc
version = 2.0.1
version = 2.0.2
description = probably the simplest way to create a nice-looking gui using python
long_description_content_type = text/markdown
long_description =
Expand Down

0 comments on commit ba60fe3

Please sign in to comment.