File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -48,16 +48,24 @@ jobs:
48
48
run : |
49
49
python -m pipenv run python -m build
50
50
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
52
59
- name : Publish a Python distribution to PyPI
53
60
uses : pypa/gh-action-pypi-publish@release/v1
54
61
with :
62
+ user : __token__
63
+ password : ${{ secrets.PYPI_TOKEN }}
55
64
packages-dir : dist/
56
65
verbose : true
57
66
retry-on-error : true
58
67
retry-on-5xx : true
59
68
max-retries : 10
60
69
retry-sleep-time : 60
61
- # Remove the token-based authentication to use Trusted Publishers
62
70
# Uncomment the following line to publish to Test PyPI instead
63
71
# repository-url: https://test.pypi.org/legacy/
You can’t perform that action at this time.
0 commit comments