File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77 Publish :
88 env :
99 USE_CYTHON : 1
10+ TWINE_USERNAME : __token__
11+ TWINE_PASSWORD : ${{ secrets.PYPI_API_TOKEN }}
1012 strategy :
1113 matrix :
12- os : [macos-latest, windows-latest, ubuntu-latest]
14+ os : [macos-latest, windows-latest] # we'll use the sdist for linux
1315 python-version : ["3.7", "3.8", "3.9", "3.10"]
1416 runs-on : ${{ matrix.os }}
1517 steps :
3638 if : ${{ matrix.os == 'macos-latest' && matrix.python.version == '3.10' }}
3739 run : python setup.py sdist
3840 - name : Publish package on Mac and Linux
39- if : ${{ matrix.os == 'macos-latest' || matrix.os == 'ubuntu-latest' }}
40- run : twine upload --skip-existing --username=__token__ --password=${{ secrets.PYPI_API_TOKEN }} dist/*
41+ if : ${{ matrix.os == 'macos-latest' }}
42+ run : twine upload --skip-existing dist/*
4143 - name : Publish package on Windows
4244 if : ${{ matrix.os == 'windows-latest' }}
43- run : twine upload --skip-existing --username=__token__ --password=${{ secrets.PYPI_API_TOKEN }} dist\*
45+ run : twine upload --skip-existing dist\*
You can’t perform that action at this time.
0 commit comments