File tree 1 file changed +34
-0
lines changed 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 37
37
with :
38
38
name : wheels
39
39
path : ./wheelhouse
40
+
41
+ build_sdist :
42
+ name : Build source distribution
43
+ runs-on : ubuntu-latest
44
+ steps :
45
+ - uses : actions/checkout@v2
46
+
47
+ - uses : actions/setup-python@v2
48
+ name : Install Python
49
+ with :
50
+ python-version : ' 3.7'
51
+
52
+ - name : Build sdist
53
+ run : python setup.py sdist
54
+
55
+ - uses : actions/upload-artifact@v2
56
+ with :
57
+ path : dist/*.tar.gz
58
+
59
+ upload_pypi :
60
+ needs : [build_wheels, build_sdist]
61
+ runs-on : ubuntu-latest
62
+ if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
63
+ steps :
64
+ - uses : actions/download-artifact@v2
65
+ with :
66
+ name : artifact
67
+ path : dist
68
+
69
+ - uses : pypa/gh-action-pypi-publish@master
70
+ with :
71
+ user : __token__
72
+ password : ${{ secrets.pypi_password }}
73
+ # To test: repository_url: https://test.pypi.org/legacy/
You can’t perform that action at this time.
0 commit comments