From c6be1dc7b2ce96c63b9694e3ff4ad98a1e4c62e7 Mon Sep 17 00:00:00 2001 From: Sorin Birchi Date: Sun, 25 Aug 2024 16:29:22 +0300 Subject: [PATCH] Update publish.yaml Signed-off-by: Sorin Birchi --- .github/workflows/publish.yaml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 7f5591d..6bfe4b9 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -11,12 +11,13 @@ jobs: pypi-publish: name: upload release to PyPI runs-on: ubuntu-latest - environment: publish + # Specifying a GitHub environment is optional, but strongly encouraged + environment: release permissions: + # IMPORTANT: this permission is mandatory for trusted publishing id-token: write steps: + # retrieve your distributions here + - name: Publish package distributions to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 - with: - username: __token__ - password: ${{ secrets.PYPI_API_TOKEN }} \ No newline at end of file + uses: pypa/gh-action-pypi-publish@release/v1 \ No newline at end of file