File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -42,37 +42,14 @@ jobs:
4242 run : |
4343 python -c "import ridal; print(ridal.__version__)"
4444
45+ - name : Publish to PyPi
46+ env :
47+ MATURIN_PYPI_TOKEN : ${{ secrets.PYPI_API_TOKEN }}
48+ run : |
49+ maturin upload --skip-existing target/wheels/*.whl
50+
4551 - name : Upload wheels (CI artifact)
4652 uses : actions/upload-artifact@v4
4753 with :
4854 name : wheels-${{ matrix.os }}-py${{ matrix.python-version }}
4955 path : target/wheels/*.whl
50-
51- publish :
52- name : Publish wheels to PyPI
53- runs-on : ubuntu-latest
54- needs : build-wheels
55- if : startsWith(github.ref, 'refs/tags/v')
56-
57- steps :
58- - uses : actions/checkout@v4
59-
60- - name : Download all wheels
61- uses : actions/download-artifact@v4
62- with :
63- path : wheels
64- pattern : wheels-*
65-
66- - name : Set up Python
67- uses : actions/setup-python@v5
68- with :
69- python-version : ' 3.12'
70-
71- - name : Install maturin
72- run : pip install maturin
73-
74- - name : Publish to PyPI
75- env :
76- MATURIN_PYPI_TOKEN : ${{ secrets.PYPI_API_TOKEN }}
77- run : |
78- maturin publish --skip-existing --no-sdist --features python --no-default-features
You can’t perform that action at this time.
0 commit comments