|
1 | 1 | name: build-wheels-push |
2 | 2 |
|
3 | | -# on: push |
| 3 | +on: push |
4 | 4 |
|
5 | | -on: |
6 | | - release: |
7 | | - types: |
8 | | - - published |
| 5 | +# on: |
| 6 | +# release: |
| 7 | +# types: |
| 8 | +# - published |
9 | 9 |
|
10 | 10 | concurrency: |
11 | 11 | group: ${{ github.workflow }}-${{ github.ref }} |
@@ -81,34 +81,34 @@ jobs: |
81 | 81 | name: cibw-wheels-${{ matrix.python }}-${{ matrix.buildplat[1] }} |
82 | 82 | path: wheelhouse/*.whl |
83 | 83 |
|
84 | | - # upload_testpypi: |
85 | | - # name: >- |
86 | | - # Publish highspy to TestPyPI |
87 | | - # runs-on: ubuntu-latest |
88 | | - # needs: [build_wheels, build_sdist] |
89 | | - # # needs: [build_sdist] |
90 | | - |
91 | | - # # upload to PyPI on every tag starting with 'v' |
92 | | - # # if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') |
93 | | - |
94 | | - # environment: |
95 | | - # name: testpypi |
96 | | - # url: https://test.pypi.org/p/highspy |
97 | | - |
98 | | - # permissions: |
99 | | - # id-token: write # IMPORTANT: mandatory for trusted publishing |
100 | | - # steps: |
101 | | - # - uses: actions/download-artifact@v4 |
102 | | - # with: |
103 | | - # pattern: cibw-* |
104 | | - # path: dist |
105 | | - # merge-multiple: true |
106 | | - |
107 | | - # - name: Download all |
108 | | - # uses: pypa/gh-action-pypi-publish@release/v1 |
109 | | - # with: |
110 | | - # repository-url: https://test.pypi.org/legacy/ |
111 | | - # verbose: true |
| 84 | + upload_testpypi: |
| 85 | + name: >- |
| 86 | + Publish highspy to TestPyPI |
| 87 | + runs-on: ubuntu-latest |
| 88 | + needs: [build_wheels, build_sdist] |
| 89 | + # needs: [build_sdist] |
| 90 | + |
| 91 | + # upload to PyPI on every tag starting with 'v' |
| 92 | + # if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') |
| 93 | + |
| 94 | + environment: |
| 95 | + name: testpypi |
| 96 | + url: https://test.pypi.org/p/highspy |
| 97 | + |
| 98 | + permissions: |
| 99 | + id-token: write # IMPORTANT: mandatory for trusted publishing |
| 100 | + steps: |
| 101 | + - uses: actions/download-artifact@v4 |
| 102 | + with: |
| 103 | + pattern: cibw-* |
| 104 | + path: dist |
| 105 | + merge-multiple: true |
| 106 | + |
| 107 | + - name: Download all |
| 108 | + uses: pypa/gh-action-pypi-publish@release/v1 |
| 109 | + with: |
| 110 | + repository-url: https://test.pypi.org/legacy/ |
| 111 | + verbose: true |
112 | 112 |
|
113 | 113 | upload_pypi: |
114 | 114 | name: >- |
|
0 commit comments