File tree Expand file tree Collapse file tree 1 file changed +25
-2
lines changed
Expand file tree Collapse file tree 1 file changed +25
-2
lines changed Original file line number Diff line number Diff line change @@ -32,13 +32,36 @@ jobs:
3232 run : |
3333 git submodule update --init --recursive
3434 python -m cibuildwheel --output-dir wheels
35- ls wheels
3635 env :
3736 CIBW_ARCHS_MACOS : " x86_64 universal2 arm64"
38- CIBW_ARCHS_LINUX : " auto aarch64"
3937
4038 - uses : actions/upload-artifact@v2
4139 name : Upload wheels
4240 with :
4341 name : wheels
4442 path : ./wheels/*.whl
43+
44+ publish :
45+ needs : build
46+ name : Publish to PyPI
47+ runs-on : ubuntu-latest
48+
49+ steps :
50+ - name : Set up Python
51+ uses : actions/setup-python@v2
52+ with :
53+ python-version : ' 3.x'
54+ - name : Install twine
55+ run : |
56+ python -m pip install --upgrade pip
57+ pip install twine
58+ - name : Download Artifacts
59+ uses : actions/download-artifact@v2
60+ with :
61+ name : wheels
62+ path : ./wheels
63+ - name : Publish
64+ env :
65+ TWINE_USERNAME : ${{ secrets.PYPI_USERNAME }}
66+ TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
67+ run : twine upload ./wheels/*
You can’t perform that action at this time.
0 commit comments