From ce18859c43f2377d3f59da66d15cc38dc3cde6dd Mon Sep 17 00:00:00 2001 From: Anatoly Myachev Date: Wed, 29 May 2024 17:55:47 +0200 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Devin Petersohn --- .github/workflows/publish-to-pypi.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index 7e2aa65ad0f..e06445444bd 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -1,12 +1,16 @@ name: Publish Modin wheel to PyPI on: push + tags: + - '*' jobs: build-n-publish: name: Build and publish Modin wheel to PyPI environment: release runs-on: ubuntu-latest + permissions: + id-token: write # IMPORTANT: this permission is mandatory for trusted publishing steps: - uses: actions/checkout@v4 @@ -28,5 +32,3 @@ jobs: - name: Publish Modin wheel to PyPI if: startsWith(github.ref, 'refs/tags') uses: pypa/gh-action-pypi-publish@release/v1 - with: - password: ${{ secrets.PUBLISH_TO_PYPI_TOKEN }}