From 41c56e1d583d6cf8cf528795c964abf853116ad9 Mon Sep 17 00:00:00 2001 From: LordMathis Date: Sun, 17 Dec 2023 21:12:18 +0100 Subject: [PATCH] Use trusted publishing --- .github/workflows/pypi_release.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pypi_release.yaml b/.github/workflows/pypi_release.yaml index 7c06729..2844dd9 100644 --- a/.github/workflows/pypi_release.yaml +++ b/.github/workflows/pypi_release.yaml @@ -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 }} \ No newline at end of file + - name: Publish package distributions to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 \ No newline at end of file