ci: make the CI simpler for both, release and tests

This commit is contained in:
Anand Balakrishnan 2023-10-06 12:53:28 -07:00
parent 22adbdf1a1
commit a4ed00b02d
No known key found for this signature in database
2 changed files with 33 additions and 95 deletions

View file

@ -115,14 +115,12 @@ jobs:
id-token: write # IMPORTANT: mandatory for trusted publishing
needs: [linux, windows, macos, sdist]
steps:
- uses: actions/download-artifact@v3
- name: Download all dists
uses: actions/download-artifact@v3
with:
name: wheels
path: dist
- name: Publish to PyPI
uses: PyO3/maturin-action@v1
env:
MATURIN_REPOSITORY_URL: "https://test.pypi.org"
path: dist/
- name: Publish distribution 📦 to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
command: upload
args: --non-interactive dist/*
repository-url: https://test.pypi.org/legacy/