Skip to content

Commit

Permalink
Publish package using uv (#1249)
Browse files Browse the repository at this point in the history
* 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 555abf5.

* Improve step name
  • Loading branch information
fepegar authored Dec 5, 2024
1 parent 33559e4 commit 6bb2457
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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

0 comments on commit 6bb2457

Please sign in to comment.