File tree Expand file tree Collapse file tree 1 file changed +14
-16
lines changed Expand file tree Collapse file tree 1 file changed +14
-16
lines changed Original file line number Diff line number Diff line change 11
11
- published
12
12
13
13
jobs :
14
- build-wheels :
15
- name : Build wheels
16
- runs-on : ubuntu-latest
17
- steps :
18
- - uses : actions/checkout@v4
19
- - name : Build wheels
20
- uses : pypa/cibuildwheel@v2.20.0
21
- - uses : actions/upload-artifact@v4
22
- with :
23
- path : ./wheelhouse/*.whl
24
-
25
- build-sdist :
26
- name : Build source distribution
14
+ build :
15
+ name : Build
27
16
runs-on : ubuntu-latest
28
17
steps :
29
18
- uses : actions/checkout@v4
30
19
- name : Build sdist
31
20
run : pipx run build --sdist
21
+ - name : Build wheels
22
+ uses : pypa/cibuildwheel@v2.20.0
23
+ - name : Prepare for artifact upload
24
+ run : |
25
+ mkdir out
26
+ mv -t out dist/*.tar.gz
27
+ mv -t out wheelhouse/*.whl
32
28
- uses : actions/upload-artifact@v4
33
29
with :
34
- path : dist/*.tar.gz
30
+ if-no-files-found : error
31
+ compression-level : 0
32
+ path : out/
35
33
36
34
test-pypi-publish :
37
35
name : Upload release to TestPyPI
38
- needs : [build-wheels, build-sdist ]
36
+ needs : [build]
39
37
runs-on : ubuntu-latest
40
38
environment : test-pypi
41
39
permissions :
53
51
54
52
pypi-publish :
55
53
name : Upload release to PyPI
56
- needs : [build-wheels, build-sdist , test-pypi-publish]
54
+ needs : [build, test-pypi-publish]
57
55
runs-on : ubuntu-latest
58
56
environment : pypi
59
57
permissions :
You can’t perform that action at this time.
0 commit comments