From 27801f67d4e684a7ff82136b23570df002c035b4 Mon Sep 17 00:00:00 2001 From: Jussi-Pekka Erkkila Date: Mon, 21 Oct 2024 01:03:42 +0300 Subject: [PATCH] Update python-publish.yml --- .github/workflows/python-publish.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index b7a704b..a31729b 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -10,15 +10,14 @@ name: Upload Python Package on: release: - types: [published] - -permissions: - contents: read + types: [created] jobs: deploy: - + name: upload release to PyPI runs-on: ubuntu-latest + permissions: + id-token: write steps: - uses: actions/checkout@v4 @@ -33,7 +32,8 @@ jobs: - name: Build package run: python -m build - name: Publish package - uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 - with: - user: __token__ - password: ${{ secrets.PYPI_API_TOKEN }} + uses: pypa/gh-action-pypi-publish@release/v1 + + + +