From b6c18c8e8d1b49cd8301fee93c3d007d0907f45f Mon Sep 17 00:00:00 2001 From: Marek Dobransky Date: Mon, 15 Jul 2024 10:36:34 +0200 Subject: [PATCH] pypi deployment --- .github/workflows/release.yml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6a7b1c9..536c162 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,7 +10,11 @@ env: jobs: publish: - environment: pypi + environment: + name: pypi + url: https://pypi.org/p/rialto + permissions: + id-token: write runs-on: ubuntu-20.04 steps: - name: Checkout Rialto @@ -26,10 +30,10 @@ jobs: poetry-version: 1.5.1 - name: Install dependencies - run: | - poetry install + run: poetry install - - name: Build and publish the wheel to jfrog - run: | - poetry build - twine upload dist/* + - name: Build the wheel + run: poetry build + + - name: Publish package distributions to PyPI + uses: pypa/gh-action-pypi-publish@release/v1