Skip to content

Commit 246b5b5

Browse files
committed
[TMP] tgcrypto: Use twine to upload arm wheels
Signed-off-by: wulan17 <wulan17@komodos.id>
1 parent 764beb2 commit 246b5b5

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/wheels.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,21 @@ jobs:
4646
- uses: actions/setup-python@v3
4747

4848
- name: Install cibuildwheel
49-
run: python -m pip install cibuildwheel
49+
run: python -m pip install cibuildwheel twine
5050

5151
- name: Build wheels
5252
run: python -m cibuildwheel --output-dir dist
5353

54+
# - name: Release to pypi
55+
# uses: pypa/gh-action-pypi-publish@release/v1
56+
57+
# pypa/gh-action-pypi-publish does not have arm support yet
58+
# use twine for now
5459
- name: Release to pypi
55-
uses: pypa/gh-action-pypi-publish@release/v1
60+
run: python -m twine upload wheelhouse/*.whl
61+
env:
62+
TWINE_USERNAME: __token__
63+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
5664

5765
build_source:
5866
name: Build source distribution
@@ -63,6 +71,9 @@ jobs:
6371

6472
- uses: actions/setup-python@v3
6573

74+
- name: Install dependencies
75+
run: pip install setuptools
76+
6677
- name: Build source distribution
6778
run: python setup.py sdist
6879

0 commit comments

Comments
 (0)