Skip to content

Commit

Permalink
replace maturian upload with pypa action
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewphilipsmith committed Dec 13, 2024
1 parent e0c2abf commit f234835
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -211,17 +211,23 @@ jobs:

publish_test:
name: Release
runs-on: ubuntu-latest
# TODO: add re-enable manylinux once earlier step is fixed
# needs: [linux, musllinux, windows, macos, sdist]
needs: [linux, windows, macos, sdist]
environment: testpypi
permissions:
id-token: write
runs-on: ubuntu-latest

steps:
- uses: actions/download-artifact@v4
- name: Publish to TestPyPI
uses: PyO3/maturin-action@v1
env:
MATURIN_PYPI_TOKEN: ${{ secrets.TESTPYPI_API_TOKEN }}
with:
command: upload
args: --non-interactive --skip-existing --repository-url="https://test.pypi.org/legacy" wheels-*/*
name: artifact
path: dist

- uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
# Only skip existing distributions on testpypi (not on pypi).
# See https://github.com/pypa/gh-action-pypi-publish?tab=readme-ov-file#tolerating-release-package-file-duplicates
skip-existing: true

0 comments on commit f234835

Please sign in to comment.