From 9a3e81f54132cff0eb4848c82b262537f4ab4b02 Mon Sep 17 00:00:00 2001 From: Nezar Abdennur Date: Wed, 8 Nov 2023 10:08:00 -0500 Subject: [PATCH] Update PyPI publish.yml for trusted publishing --- .github/workflows/publish.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 85954196..9e5cb8a0 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -7,9 +7,12 @@ on: jobs: Publish: runs-on: ubuntu-latest + permissions: + id-token: write + steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Python uses: actions/setup-python@v4 @@ -26,7 +29,3 @@ jobs: - name: Publish distribution 📦 to PyPI uses: pypa/gh-action-pypi-publish@release/v1 - with: - user: ${{ secrets.PYPI_USERNAME }} - password: ${{ secrets.PYPI_PASSWORD }} -