File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: Upload Python Package
22
33on :
44 release :
5- types : [created ]
5+ types : [published ]
66
77jobs :
88 deploy :
@@ -14,15 +14,17 @@ jobs:
1414 uses : actions/setup-python@v4
1515 with :
1616 python-version : ' 3.x'
17+ cache : pip
18+ cache-dependency-path : setup.py
1719 - name : Install dependencies
1820 run : |
19- python -m pip install --user -- upgrade setuptools wheel
21+ python -m pip install --upgrade build
2022 - name : Build
2123 run : |
22- python setup.py sdist bdist_wheel
24+ python -m build
2325 - name : Publish distribution 📦 to PyPI
2426 if : startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release'
25- uses : pypa/gh-action-pypi-publish@master
27+ uses : pypa/gh-action-pypi-publish@release/v1
2628 with :
2729 user : __token__
2830 password : ${{ secrets.PYPI_API_TOKEN }}
Original file line number Diff line number Diff line change 2424#
2525# Release a new version:
2626#
27- # - go to the GitHub release tab: https://github.com/psf/pyperf /releases
27+ # - go to the GitHub release tab: https://github.com/python/pyperformance /releases
2828# - click "Draft a new release" and fill the contents
2929# - finally click the "Publish release" button! Done!
3030# - monitor the publish status: https://github.com/python/pyperformance/actions/workflows/publish.yml
You can’t perform that action at this time.
0 commit comments