Skip to content

Commit a30907c

Browse files
committed
try to fix release step
1 parent cc15b83 commit a30907c

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/pypi_upload.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,24 @@ jobs:
4848
run: |
4949
python -m pipenv run python -m build
5050
51-
# Publish to PyPI using Trusted Publishers
51+
# Publish to PyPI using token authentication
52+
# Note: To use Trusted Publishers in the future, you need to set up a publisher on PyPI:
53+
# Visit: https://pypi.org/manage/project/pipenv/settings/publishing/
54+
# And add a publisher with:
55+
# - Provider: GitHub
56+
# - Owner: pypa
57+
# - Repository: pipenv
58+
# - Workflow filename: pypi_upload.yml
5259
- name: Publish a Python distribution to PyPI
5360
uses: pypa/gh-action-pypi-publish@release/v1
5461
with:
62+
user: __token__
63+
password: ${{ secrets.PYPI_TOKEN }}
5564
packages-dir: dist/
5665
verbose: true
5766
retry-on-error: true
5867
retry-on-5xx: true
5968
max-retries: 10
6069
retry-sleep-time: 60
61-
# Remove the token-based authentication to use Trusted Publishers
6270
# Uncomment the following line to publish to Test PyPI instead
6371
# repository-url: https://test.pypi.org/legacy/

0 commit comments

Comments
 (0)