@@ -31,15 +31,11 @@ jobs:
3131 run : |
3232 ls ${{ github.workspace }}/linux-wheels
3333 - name : Publish to PyPI
34- # if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
35- uses : pypa/gh-action-pypi-publish@release/v1
36- with :
37- user : __token__
38- # password: ${{ secrets.PYPI_TEST_API_TOKEN }}
39- # repository_url: https://test.pypi.org/legacy/
40- password : ${{ secrets.PYPI_API_TOKEN }}
41- packages-dir : ${{ github.workspace }}/linux-wheels
42- verbose : true
34+ run : |
35+ pip3 install twine
36+ export TWINE_USERNAME=__token__
37+ export TWINE_PASSWORD="${{ secrets.PYPI_API_TOKEN }}"
38+ twine upload --verbose linux-wheels/*
4339
4440 release-pypi-aarch64 :
4541 runs-on : ubuntu-latest
@@ -72,15 +68,11 @@ jobs:
7268 run : |
7369 ls ${{ github.workspace }}/linux-wheels
7470 - name : Publish to PyPI
75- # if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
76- uses : pypa/gh-action-pypi-publish@release/v1
77- with :
78- user : __token__
79- # password: ${{ secrets.PYPI_TEST_API_TOKEN }}
80- # repository_url: https://test.pypi.org/legacy/
81- password : ${{ secrets.PYPI_API_TOKEN }}
82- packages-dir : ${{ github.workspace }}/linux-wheels
83- verbose : true
71+ run : |
72+ pip3 install twine
73+ export TWINE_USERNAME=__token__
74+ export TWINE_PASSWORD="${{ secrets.PYPI_API_TOKEN }}"
75+ twine upload --verbose linux-wheels/*
8476
8577 release-pypi-sdist :
8678 runs-on : ubuntu-latest
@@ -102,6 +94,12 @@ jobs:
10294 password : ${{ secrets.PYPI_API_TOKEN }}
10395 packages-dir : ${{ github.workspace }}/dist
10496 verbose : true
97+ - name : Publish to PyPI
98+ run : |
99+ pip3 install twine
100+ export TWINE_USERNAME=__token__
101+ export TWINE_PASSWORD="${{ secrets.PYPI_API_TOKEN }}"
102+ twine upload --verbose linux-wheels/*
105103
106104# release-pypi-macos-x86:
107105# name: Build wheels for macos
0 commit comments