Use trusted publishing

This commit is contained in:
LordMathis 2023-12-17 21:12:18 +01:00
parent 74833ba8a2
commit 41c56e1d58
1 changed files with 4 additions and 4 deletions

View File

@ -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