Skip to content

Commit 85e86f8

Browse files
Tried to fix upload
1 parent aaab39e commit 85e86f8

1 file changed

Lines changed: 6 additions & 29 deletions

File tree

.github/workflows/python.yml

Lines changed: 6 additions & 29 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)