Skip to content

Commit 3f63ad0

Browse files
committed
Don't publish any linux binaries.
1 parent 9c5cb8c commit 3f63ad0

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@ jobs:
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:
@@ -36,8 +38,8 @@ jobs:
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\*

0 commit comments

Comments
 (0)