11name : build-wheels-push
22
3+ on : []
34# on: push
45
5- on :
6- release :
7- types :
8- - published
6+ # on:
7+ # release:
8+ # types:
9+ # - published
910
1011concurrency :
1112 group : ${{ github.workflow }}-${{ github.ref }}
@@ -22,13 +23,13 @@ jobs:
2223 shell : bash
2324 run : pipx run build --sdist
2425
25- # - name: check metadata
26- # run: pipx run twine check python/ dist/*
26+ - name : check metadata
27+ run : pipx run twine check dist/*
2728
2829 - uses : actions/upload-artifact@v4
2930 with :
3031 name : cibw-sdist
31- path : python/ dist/*.tar.gz
32+ path : dist/*.tar.gz
3233
3334 build_wheels :
3435 name : Build wheel for ${{ matrix.python }}-${{ matrix.buildplat[1] }}
@@ -81,49 +82,22 @@ jobs:
8182 name : cibw-wheels-${{ matrix.python }}-${{ matrix.buildplat[1] }}
8283 path : wheelhouse/*.whl
8384
84- # upload_testpypi:
85- # name: >-
86- # Publish highspy to TestPyPI
87- # runs-on: ubuntu-latest
88- # needs: [build_wheels, build_sdist]
89-
90- # # upload to PyPI on every tag starting with 'v'
91- # # if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
92-
93- # environment:
94- # name: testpypi
95- # url: https://testpypi.org/p/highspy
96-
97- # permissions:
98- # id-token: write # IMPORTANT: mandatory for trusted publishing
99- # steps:
100- # - uses: actions/download-artifact@v4
101- # with:
102- # pattern: cibw-*
103- # path: dist
104- # merge-multiple: true
105-
106- # - name: Download all
107- # uses: pypa/gh-action-pypi-publish@release/v1
108- # with:
109- # repository-url: https://test.pypi.org/legacy/
110-
111- upload_pypi :
85+ upload_testpypi :
11286 name : >-
113- Publish highspy to PyPI
87+ Publish highspy to TestPyPI
11488 runs-on : ubuntu-latest
11589 needs : [build_wheels, build_sdist]
90+ # needs: [build_sdist]
11691
11792 # upload to PyPI on every tag starting with 'v'
11893 # if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
11994
12095 environment :
121- name : pypi
122- url : https://pypi.org/p/highspy
96+ name : testpypi
97+ url : https://test. pypi.org/p/highspy
12398
12499 permissions :
125100 id-token : write # IMPORTANT: mandatory for trusted publishing
126-
127101 steps :
128102 - uses : actions/download-artifact@v4
129103 with :
@@ -133,3 +107,32 @@ jobs:
133107
134108 - name : Download all
135109 uses : pypa/gh-action-pypi-publish@release/v1
110+ with :
111+ repository-url : https://test.pypi.org/legacy/
112+ verbose : true
113+
114+ # upload_pypi:
115+ # name: >-
116+ # Publish highspy to PyPI
117+ # runs-on: ubuntu-latest
118+ # needs: [build_wheels, build_sdist]
119+
120+ # # upload to PyPI on every tag starting with 'v'
121+ # # if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
122+
123+ # environment:
124+ # name: pypi
125+ # url: https://pypi.org/p/highspy
126+
127+ # permissions:
128+ # id-token: write # IMPORTANT: mandatory for trusted publishing
129+
130+ # steps:
131+ # - uses: actions/download-artifact@v4
132+ # with:
133+ # pattern: cibw-*
134+ # path: dist
135+ # merge-multiple: true
136+
137+ # - name: Download all
138+ # uses: pypa/gh-action-pypi-publish@release/v1
0 commit comments