From 73566ec5c54989195ffd7fb91763296e91c35499 Mon Sep 17 00:00:00 2001 From: Saransh Chopra Date: Tue, 5 Sep 2023 01:43:29 +0530 Subject: [PATCH] Use trusted publisher deployment --- .github/workflows/cd.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 4e778f5..923ef87 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -28,6 +28,11 @@ jobs: needs: [dist] runs-on: ubuntu-latest if: github.event_name == 'release' && github.event.action == 'published' + environment: + name: pypi + url: https://pypi.org/p/removestar + permissions: + id-token: write steps: - uses: actions/download-artifact@v3 @@ -35,7 +40,4 @@ jobs: name: artifact path: dist - - uses: pypa/gh-action-pypi-publish@v - with: - user: __token__ - password: ${{ secrets.pypi_password }} + - uses: pypa/gh-action-pypi-publish@release/v1