Skip to content

Commit fa40bdf

Browse files
committed
testPypi
1 parent d9227cf commit fa40bdf

File tree

1 file changed

+33
-33
lines changed

1 file changed

+33
-33
lines changed

.github/workflows/build-wheels-push.yml

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
name: build-wheels-push
22

3-
# on: push
3+
on: push
44

5-
on:
6-
release:
7-
types:
8-
- published
5+
# on:
6+
# release:
7+
# types:
8+
# - published
99

1010
concurrency:
1111
group: ${{ github.workflow }}-${{ github.ref }}
@@ -81,34 +81,34 @@ jobs:
8181
name: cibw-wheels-${{ matrix.python }}-${{ matrix.buildplat[1] }}
8282
path: wheelhouse/*.whl
8383

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
112112

113113
upload_pypi:
114114
name: >-

0 commit comments

Comments
 (0)