Skip to content

Commit

Permalink
Try publishing with uv
Browse files Browse the repository at this point in the history
  • Loading branch information
fepegar committed Dec 5, 2024
1 parent 33559e4 commit 2d881cc
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -30,19 +30,22 @@ jobs:
id-token: write

steps:
- name: Print ref
run: echo ${{ github.ref }}

- name: Download all workflow run artifacts
uses: actions/download-artifact@v4
with:
name: dist
path: dist

- name: Install uv
uses: astral-sh/setup-uv@v4

- name: Publish package to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
skip-existing: true
run: uv publish --publish-url https://test.pypi.org/legacy/

- name: Publish TorchIO to PyPI if commit is tagged
- 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

0 comments on commit 2d881cc

Please sign in to comment.