From 72b657855d719c8a2069e0cbfc04581b67013c76 Mon Sep 17 00:00:00 2001 From: Sadra Yahyapour Date: Sat, 13 Apr 2024 14:24:56 +0330 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6c38dee..5ec000e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,9 +6,13 @@ on: - v* jobs: - deploy: + pypi-publish: + name: upload release to PyPI runs-on: ubuntu-latest - + # Specifying a GitHub environment is optional, but strongly encouraged + environment: release + permissions: + id-token: write steps: - uses: actions/checkout@v3 - name: Set up Python @@ -21,7 +25,6 @@ jobs: pip install build - name: Build package run: python -m build - - name: Publish new distributions to PyPI + + - name: Publish package distributions to PyPI uses: pypa/gh-action-pypi-publish@release/v1 - with: - password: ${{ secrets.PYPI_API_TOKEN }}