Skip to content

Commit 9ec5ca6

Browse files
authored
Update python-publish.yml
1 parent 116cd64 commit 9ec5ca6

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

.github/workflows/python-publish.yml

+14-12
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,24 @@ jobs:
2323
- name: Build the package
2424
run: |
2525
pip install .
26-
python -m build
27-
- name: Build wheel with cibuildwheel
28-
if: startsWith(github.ref, 'refs/tags')
29-
run: |
30-
pip install cibuildwheel
31-
cibuildwheel --platform linux
32-
env:
33-
#it is not working with python 3.6, which is outdated and no longer supported by many modern packages, including scikit-build-core.
34-
CIBW_SKIP: "cp36-*"
35-
CIBW_BUILD: "cp38-* cp39-* cp310-* cp311-* cp312-*"
26+
python -m build --sdist --wheel
27+
#- name: Build wheel with cibuildwheel
28+
# if: startsWith(github.ref, 'refs/tags')
29+
# run: |
30+
# pip install cibuildwheel
31+
# cibuildwheel --platform linux
32+
# env:
33+
# #it is not working with python 3.6, which is outdated and no longer supported by many modern packages, including scikit-build-core.
34+
# CIBW_SKIP: "cp36-*"
35+
# CIBW_BUILD: "cp38-* cp39-* cp310-* cp311-* cp312-*"
3636

3737

3838
- name: Publish distribution 📦 to Test PyPI
39-
if: startsWith(github.ref, 'refs/tags')
39+
#if: startsWith(github.ref, 'refs/tags')
4040
run: |
41-
twine upload --repository testpypi wheelhouse/* --verbose
41+
#twine upload --repository testpypi wheelhouse/* --verbose
42+
twine upload --repository pypi dist/* --verbose
43+
4244
env:
4345
TWINE_USERNAME: __token__
4446
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_PASSWORD }}

0 commit comments

Comments
 (0)