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