From c0a4a7ab5f59489e6097ea13234d59088b4174a2 Mon Sep 17 00:00:00 2001 From: Etty Date: Mon, 20 May 2024 19:31:42 +0100 Subject: [PATCH] Update workflow --- .github/workflows/deploy.yml | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 99aa470..4beddee 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -7,9 +7,10 @@ on: jobs: publish-library: + name: Publish package to PyPI runs-on: ubuntu-latest - environment: release permissions: + contents: read id-token: write steps: @@ -21,13 +22,5 @@ jobs: python-version: "3.12" cache: true - - name: Install dependencies - run: | - pdm install - - - name: Build package distributions - run: | - pdm build - - - name: Publish package distributions to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 + - name: Publish to PyPI + run: pdm publish