File tree Expand file tree Collapse file tree 1 file changed +26
-1
lines changed
Expand file tree Collapse file tree 1 file changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: Build
33on : [push, pull_request]
44
55jobs :
6- build_wheels :
6+ build :
77 name : Build wheels on ${{ matrix.os }}
88 runs-on : ${{ matrix.os }}
99 strategy :
3838 with :
3939 name : wheels
4040 path : ./wheels/*.whl
41+
42+ publish :
43+ needs : build
44+ name : Publish to PyPI
45+ runs-on : ubuntu-latest
46+
47+ steps :
48+ - name : Set up Python
49+ uses : actions/setup-python@v2
50+ with :
51+ python-version : ' 3.x'
52+ - name : Install twine
53+ run : |
54+ python -m pip install --upgrade pip
55+ pip install twine
56+ - name : Download Artifacts
57+ uses : actions/download-artifact@v2
58+ with :
59+ name : wheels
60+ path : ./wheels
61+ - name : Publish
62+ env :
63+ TWINE_USERNAME : ${{ secrets.TPYPI_USERNAME }}
64+ TWINE_PASSWORD : ${{ secrets.TPYPI_PASSWORD }}
65+ run : twine upload --repository testpypi ./wheels/*
You can’t perform that action at this time.
0 commit comments