Use trusted publishing
This commit is contained in:
parent
74833ba8a2
commit
41c56e1d58
|
@ -9,6 +9,8 @@ jobs:
|
|||
build-n-publish:
|
||||
name: Build and publish Python 🐍 distributions 📦 to PyPI
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
id-token: write
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- name: Set up Python 3.10
|
||||
|
@ -28,7 +30,5 @@ jobs:
|
|||
- name: Build a binary wheel
|
||||
run: >-
|
||||
python setup.py sdist bdist_wheel
|
||||
- name: Publish distribution 📦 to PyPI
|
||||
uses: pypa/gh-action-pypi-publish@master
|
||||
with:
|
||||
password: ${{ secrets.PYPI_API_TOKEN }}
|
||||
- name: Publish package distributions to PyPI
|
||||
uses: pypa/gh-action-pypi-publish@release/v1
|
Loading…
Reference in New Issue