From 400fdb025d02dc0644617ce840c42a3e6cc8a278 Mon Sep 17 00:00:00 2001 From: Mips2648 Date: Sun, 12 May 2024 09:49:42 +0200 Subject: [PATCH] update publish --- .github/workflows/python-publish.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 8e7fcb0..7007cb5 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -19,7 +19,11 @@ jobs: deploy: runs-on: ubuntu-latest - + # Specifying a GitHub environment is optional, but strongly encouraged + environment: release + permissions: + # IMPORTANT: this permission is mandatory for trusted publishing + id-token: write steps: - uses: actions/checkout@v4 - name: Set up Python @@ -34,6 +38,3 @@ jobs: run: python -m build - name: Publish package uses: pypa/gh-action-pypi-publish@81e9d935c883d0b210363ab89cf05f3894778450 - with: - user: __token__ - password: ${{ secrets.PYPI_API_TOKEN }}