File tree Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Original file line number Diff line number Diff line change 41
41
name : ${{matrix.os}}-wheels
42
42
path : ./wheelhouse/*.whl
43
43
44
+ build_sdist :
45
+ name : Build source dist
46
+ runs-on : ubuntu-20.04
47
+ steps :
48
+ - uses : actions/setup-python@v4
49
+ with :
50
+ python-version : ' 3.10'
51
+ - uses : actions/checkout@v3
52
+ with :
53
+ submodules : recursive
54
+ - name : Build sdist
55
+ run : |
56
+ python3 setup.py sdist
57
+ - uses : actions/upload-artifact@v3
58
+ with :
59
+ name : source-dist
60
+ path : ./dist/*.tar.gz
61
+
44
62
publish :
45
63
name : Pypi publish
46
- needs : ['build_wheels']
64
+ needs : ['build_wheels', 'build_sdist' ]
47
65
runs-on : ubuntu-latest
48
66
steps :
49
67
- uses : actions/setup-python@v4
@@ -64,12 +82,17 @@ jobs:
64
82
with :
65
83
name : macos-10.15-wheels
66
84
path : artifacts/macos
85
+ - uses : actions/download-artifact@v3
86
+ with :
87
+ name : source-dist
88
+ path : artifacts/sdist
67
89
- name : unify wheel structure
68
90
run : |
69
91
mkdir dist
70
92
cp -R artifacts/windows/* dist
71
93
cp -R artifacts/linux/* dist
72
94
cp -R artifacts/macos/* dist
95
+ cp -R artifacts/sdist/* dist
73
96
74
97
- name : Publish to Pypi
75
98
uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments