Skip to content

Commit faca686

Browse files
authored
ci: replace maturin upload step with uv publish (#574)
1 parent 2ed6f08 commit faca686

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,6 @@ jobs:
375375
release:
376376
name: Release
377377
runs-on: ubuntu-latest
378-
if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
379378
needs: [manylinux, musllinux, windows, macos, android, sdist, tests, style]
380379
permissions:
381380
# Use to sign the release artifacts
@@ -386,19 +385,21 @@ jobs:
386385
attestations: write
387386
steps:
388387
- uses: actions/download-artifact@v8
388+
- name: Install the latest version of uv
389+
uses: astral-sh/setup-uv@v7
389390
- name: Generate artifact attestation
390391
uses: actions/attest-build-provenance@v4
391392
with:
392393
subject-path: "wheels-*/*"
394+
- name: Dry-run publish to PyPI
395+
env:
396+
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
397+
run: uv publish --dry-run wheels-*/*
393398
- name: Publish to PyPI
394399
if: ${{ startsWith(github.ref, 'refs/tags/') }}
395-
uses: PyO3/maturin-action@v1
396400
env:
397-
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
398-
with:
399-
maturin-version: ${{ env.MATURIN_VERSION }}
400-
command: upload
401-
args: --non-interactive --skip-existing wheels-*/*
401+
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
402+
run: uv publish wheels-*/*
402403
- name: Upload binaries to GitHub Release
403404
uses: softprops/action-gh-release@v3
404405
if: startsWith(github.ref, 'refs/tags/')

0 commit comments

Comments
 (0)