Skip to content

Commit 02efb99

Browse files
committed
Update deployment workflows to include Twine for package uploads
1 parent d969e91 commit 02efb99

2 files changed

Lines changed: 4 additions & 20 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ jobs:
241241
/opt/python/cp311-cp311/bin/pip install "cmake<4"
242242
rm /usr/local/bin/cmake || true
243243
ln -s /opt/python/cp311-cp311/bin/cmake /usr/local/bin/cmake
244-
/opt/python/cp311-cp311/bin/pip install -U wheel setuptools numpy
244+
/opt/python/cp311-cp311/bin/pip install -U wheel setuptools numpy twine
245245
USE_MIMALLOC=1 Py_LIMITED_API=1 /opt/python/cp311-cp311/bin/python setup.py build bdist_wheel
246246
auditwheel repair dist/*.whl
247247
for cp in cp314-cp314t
@@ -250,12 +250,4 @@ jobs:
250250
USE_MIMALLOC=1 /opt/python/${cp}/bin/python setup.py build bdist_wheel
251251
auditwheel repair dist/*-${cp}-*.whl
252252
done
253-
mv wheelhouse/*.whl /artifacts/
254-
- name: Upload wheels
255-
env:
256-
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
257-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
258-
run: |
259-
python3 -m pip install -U pip setuptools
260-
python3 -m pip install twine wheel
261-
python3 -m twine upload artifacts/*.whl
253+
/opt/python/cp311-cp311/bin/twine upload --repository pypi wheelhouse/*.whl

.github/workflows/deploy_test.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ jobs:
238238
/opt/python/cp311-cp311/bin/pip install "cmake<4"
239239
rm /usr/local/bin/cmake || true
240240
ln -s /opt/python/cp311-cp311/bin/cmake /usr/local/bin/cmake
241-
/opt/python/cp311-cp311/bin/pip install -U wheel setuptools numpy
241+
/opt/python/cp311-cp311/bin/pip install -U wheel setuptools numpy twine
242242
USE_MIMALLOC=1 Py_LIMITED_API=1 /opt/python/cp311-cp311/bin/python setup.py build bdist_wheel
243243
auditwheel repair dist/*.whl
244244
for cp in cp314-cp314t
@@ -247,12 +247,4 @@ jobs:
247247
USE_MIMALLOC=1 /opt/python/${cp}/bin/python setup.py build bdist_wheel
248248
auditwheel repair dist/*-${cp}-*.whl
249249
done
250-
mv wheelhouse/*.whl /artifacts/
251-
- name: Upload wheels
252-
env:
253-
TWINE_USERNAME: ${{ secrets.TEST_PYPI_USERNAME }}
254-
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_PASSWORD }}
255-
run: |
256-
python3 -m pip install -U pip setuptools
257-
python3 -m pip install twine wheel
258-
python3 -m twine upload --repository testpypi artifacts/*.whl
250+
/opt/python/cp311-cp311/bin/twine upload --repository testpypi wheelhouse/*.whl

0 commit comments

Comments
 (0)