File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change 7373 name : Build and publish to PyPI
7474 needs : style_n_coverage
7575 runs-on : ubuntu-latest
76+ permissions :
77+ # IMPORTANT: this permission is mandatory for trusted publishing
78+ id-token : write
7679 if : contains(github.ref, '=')
7780 steps :
7881 - uses : actions/checkout@v2
9699 cd ${{ env.repo_name }}
97100 python -m pip install --upgrade pip
98101 pip install setuptools wheel twine
99- - name : Build and publish
100- env :
101- TWINE_USERNAME : ${{ secrets.PYPI_PUBLISH_USER }}
102- TWINE_PASSWORD : ${{ secrets.PYPI_PUBLISH_PWORD }}
103- run : |
104- cd ${{ env.repo_name }}
105- python setup.py sdist bdist_wheel
106- twine upload --skip-existing dist/*
102+ - name : Publish package distributions to PyPI
103+ uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments