File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212 pull_request :
1313 branches : [main]
1414
15+ # Manual trigger for pushing to PyPI
16+ workflow_dispatch :
17+ inputs :
18+ deploy :
19+ description : " Upload wheels & sdist to PyPI?"
20+ required : true
21+ type : boolean
22+ default : false
23+
1524jobs :
1625 build_sdist :
1726 name : Build source
5766 uses : actions/upload-artifact@v4
5867 with :
5968 name : cibw-wheels-${{ matrix.os }}
60- path : wheelhouse/*.whl
69+ path : wheelhouse/*.whl
70+
71+ upload_pypi :
72+ name : Upload to PyPI (manual trigger)
73+ needs : [build_sdist, build_wheels]
74+ runs-on : ubuntu-latest
75+ if : ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.deploy == 'true' }}
76+
77+ steps :
78+ - uses : actions/download-artifact@v4
79+ with :
80+ pattern : " *wheels*"
81+ merge-multiple : true
82+
83+ - name : Install Twine
84+ run : |
85+ python -m pip install --upgrade twine
86+
87+ - name : Upload to PyPI
88+ env :
89+ TWINE_USERNAME : ${{ secrets.PYPI_USERNAME }}
90+ TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
91+ run : |
92+ twine upload --skip-existing *.whl *.tar.gz
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "scikit_build_core.build"
44
55[project ]
66name = " qoco"
7- version = " 0.2.0 "
7+ version = " 0.1.7 "
88description = " QOCO: Quadratic Objective Conic Optimizer"
99readme = " README.md"
1010requires-python = " >=3.8"
You can’t perform that action at this time.
0 commit comments