From fa40bdfd3ce39d31789dc92bc38d318008a8d857 Mon Sep 17 00:00:00 2001 From: Ivet Galabova Date: Fri, 20 Dec 2024 18:10:45 +0000 Subject: [PATCH] testPypi --- .github/workflows/build-wheels-push.yml | 66 ++++++++++++------------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/.github/workflows/build-wheels-push.yml b/.github/workflows/build-wheels-push.yml index 751eb1c83f..549bae6830 100644 --- a/.github/workflows/build-wheels-push.yml +++ b/.github/workflows/build-wheels-push.yml @@ -1,11 +1,11 @@ name: build-wheels-push -# on: push +on: push -on: - release: - types: - - published +# on: +# release: +# types: +# - published concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -81,34 +81,34 @@ jobs: name: cibw-wheels-${{ matrix.python }}-${{ matrix.buildplat[1] }} path: wheelhouse/*.whl - # upload_testpypi: - # name: >- - # Publish highspy to TestPyPI - # runs-on: ubuntu-latest - # needs: [build_wheels, build_sdist] - # # needs: [build_sdist] - - # # upload to PyPI on every tag starting with 'v' - # # if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') - - # environment: - # name: testpypi - # url: https://test.pypi.org/p/highspy - - # permissions: - # id-token: write # IMPORTANT: mandatory for trusted publishing - # steps: - # - uses: actions/download-artifact@v4 - # with: - # pattern: cibw-* - # path: dist - # merge-multiple: true - - # - name: Download all - # uses: pypa/gh-action-pypi-publish@release/v1 - # with: - # repository-url: https://test.pypi.org/legacy/ - # verbose: true + upload_testpypi: + name: >- + Publish highspy to TestPyPI + runs-on: ubuntu-latest + needs: [build_wheels, build_sdist] + # needs: [build_sdist] + + # upload to PyPI on every tag starting with 'v' + # if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') + + environment: + name: testpypi + url: https://test.pypi.org/p/highspy + + permissions: + id-token: write # IMPORTANT: mandatory for trusted publishing + steps: + - uses: actions/download-artifact@v4 + with: + pattern: cibw-* + path: dist + merge-multiple: true + + - name: Download all + uses: pypa/gh-action-pypi-publish@release/v1 + with: + repository-url: https://test.pypi.org/legacy/ + verbose: true upload_pypi: name: >-