File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 7
7
Publish :
8
8
env :
9
9
USE_CYTHON : 1
10
+ TWINE_USERNAME : __token__
11
+ TWINE_PASSWORD : ${{ secrets.PYPI_API_TOKEN }}
10
12
strategy :
11
13
matrix :
12
- os : [macos-latest, windows-latest, ubuntu-latest]
14
+ os : [macos-latest, windows-latest] # we'll use the sdist for linux
13
15
python-version : ["3.7", "3.8", "3.9", "3.10"]
14
16
runs-on : ${{ matrix.os }}
15
17
steps :
36
38
if : ${{ matrix.os == 'macos-latest' && matrix.python.version == '3.10' }}
37
39
run : python setup.py sdist
38
40
- 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/*
41
43
- name : Publish package on Windows
42
44
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