File tree Expand file tree Collapse file tree 1 file changed +10
-16
lines changed Expand file tree Collapse file tree 1 file changed +10
-16
lines changed Original file line number Diff line number Diff line change 55 types : [created]
66
77jobs :
8- deploy :
8+ pypi-publish :
9+ name : upload release to PyPI
910 runs-on : ubuntu-latest
11+ # Specifying a GitHub environment is optional, but strongly encouraged
12+ environment : pypi
13+ permissions :
14+ # IMPORTANT: this permission is mandatory for trusted publishing
15+ id-token : write
1016 steps :
17+ # retrieve your distributions here
1118 - uses : actions/checkout@v1
12- - name : Set up Python
13- uses : actions/setup-python@v1
14- with :
15- python-version : ' 3.x'
16- - name : Install dependencies
17- run : |
18- python -m pip install --upgrade pip
19- pip install setuptools wheel twine
20- - name : Build and publish
21- env :
22- TWINE_USERNAME : ${{ secrets.PYPI_USERNAME }}
23- TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
24- run : |
25- python setup.py sdist bdist_wheel
26- twine upload dist/*
19+ - name : Publish package distributions to PyPI
20+ uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments