From 627f499bc2d9d2a68267ec35dd2fc011ab8d4304 Mon Sep 17 00:00:00 2001 From: sercancicek Date: Fri, 10 May 2024 14:32:39 +0200 Subject: [PATCH] feat: trusted publisher --- .github/workflows/release.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3872bdf..fe3f746 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,6 +8,7 @@ jobs: name: release runs-on: ubuntu-latest permissions: + id-token: write contents: write steps: - uses: actions/checkout@v4 @@ -16,11 +17,7 @@ jobs: with: python-version: "3.10" - name: Publish package distributions to PyPI - env: - PYPI_API_TOKEN: "${{ secrets.PYPI_API_TOKEN }}" - run: >- - pdm publish --repository pypi --username __token__ --password - $PYPI_API_TOKEN + run: pdm publish - name: Install dependencies run: | pdm sync -G docs