16
16
type : string
17
17
required : false
18
18
default : " ./"
19
- platforms :
20
- description : Platforms to build for e.g. "['ubuntu-latest','macos-latest','windows-latest']"
19
+ binwheel_platforms :
20
+ description : For not pure python project, the platforms to build for e.g. "['ubuntu-latest','macos-latest','windows-latest']"
21
21
required : false
22
22
type : string
23
23
default : ' '
24
- pyversions :
25
- description : Python versions to build for e.g. "['38','39','310','311','312']"
24
+ binwheel_pyversions :
25
+ description : For not pure python project, the Python versions to build for e.g. "['38','39','310','311','312','313 ']"
26
26
required : false
27
27
type : string
28
28
default : ' '
29
- build_args :
29
+ purepython_buildargs :
30
30
description : Args to pass in to build as `python -m build {build_args}` e.g. '--sdist'
31
+ If using binary wheels, set to --sdist to upload just the source distribution.
31
32
type : string
32
33
required : false
33
34
default : ' '
34
35
35
36
36
37
jobs :
37
- deploy_source :
38
+ deploy_purepython :
38
39
if : ${{ github.ref_type == 'tag' || github.event_name == 'release' || inputs.testpypi }}
39
40
runs-on : ubuntu-latest
40
41
defaults :
@@ -115,15 +116,14 @@ jobs:
115
116
twine upload --repository testpypi --verbose dist/*
116
117
117
118
118
- deploy_wheels :
119
+ deploy_binary_wheels :
119
120
if : inputs.platforms != '' && inputs.pyversions != ''
120
- needs : deploy_source
121
- name : Build wheels and source distribution
121
+ needs : deploy_purepython
122
122
strategy :
123
123
matrix :
124
- os : ${{ fromJson(inputs.platforms) }}
124
+ platform : ${{ fromJson(inputs.platforms) }}
125
125
python : ${{ fromJson(inputs.pyversions) }}
126
- runs-on : ${{ matrix.os }}
126
+ runs-on : ${{ matrix.platform }}
127
127
defaults :
128
128
run :
129
129
working-directory : ${{ inputs.working-directory }}
@@ -155,7 +155,6 @@ jobs:
155
155
TWINE_USERNAME : __token__
156
156
TWINE_PASSWORD : ${{ secrets.PYPI_API_TOKEN }}
157
157
run : |
158
- pip install twine
159
158
twine check dist/*.whl
160
159
twine upload dist/*.whl
161
160
@@ -165,7 +164,6 @@ jobs:
165
164
TWINE_USERNAME : __token__
166
165
TWINE_PASSWORD : ${{ secrets.PYPI_TEST_API_TOKEN }}
167
166
run : |
168
- pip install twine
169
167
twine check dist/*.whl
170
168
# HINT: if your upload fails here due to "unsupported local version",
171
169
# put `local_scheme = "no-local-version"` pyproject.toml's
0 commit comments