From 6bb2457fd23ed76156dfd4f4cc84d0cd42e6f081 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20P=C3=A9rez-Garc=C3=ADa?= Date: Thu, 5 Dec 2024 22:58:17 +0000 Subject: [PATCH] Publish package using uv (#1249) * Try publishing with uv * Revert using uv for TestPyPI * Try again uv for uploading to TestPyPI * Add verbosity * Revert "Try again uv for uploading to TestPyPI" This reverts commit 555abf534966c17bffe6efa72e4872af9eff865b. * Improve step name --- .github/workflows/publish.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 579ee85cd..b55bcc82b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -30,6 +30,9 @@ jobs: id-token: write steps: + - name: Print ref + run: echo ${{ github.ref }} + - name: Download all workflow run artifacts uses: actions/download-artifact@v4 with: @@ -42,7 +45,11 @@ jobs: repository-url: https://test.pypi.org/legacy/ skip-existing: true - - name: Publish TorchIO to PyPI if commit is tagged + - name: Install uv if commit is tagged + if: startsWith(github.ref, 'refs/tags') + uses: astral-sh/setup-uv@v4 + + - name: Publish package to PyPI if commit is tagged # Publish only tagged commits if: startsWith(github.ref, 'refs/tags') - uses: pypa/gh-action-pypi-publish@release/v1 + run: uv publish --verbose