From 848e1f9b1873e474eb9432c33c613f70addf24e6 Mon Sep 17 00:00:00 2001 From: Linlang Date: Thu, 19 Dec 2024 20:06:36 +0800 Subject: [PATCH] rewrite deploy with macos --- .github/workflows/python-publish.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 8f989867d1..6d700d3a71 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -127,6 +127,9 @@ jobs: # run: | # make build - name: Build 1 + run: | + make build + - name: Rename 1 run: | make build python -c " @@ -147,6 +150,9 @@ jobs: if: ${{ (matrix.buildplat[0] != 'macos-13' || matrix['python-version'] != '3.11') && (matrix.buildplat[0] != 'macos-13' || matrix['python-version'] != '3.12') }} run: | make build + - name: Rename 2 + if: ${{ (matrix.buildplat[0] != 'macos-13' || matrix['python-version'] != '3.11') && (matrix.buildplat[0] != 'macos-13' || matrix['python-version'] != '3.12') }} + run: | python -c " from pathlib import Path plat_info = '${{ matrix.buildplat[1] }}'.split('_', 1)[-1] @@ -157,7 +163,7 @@ jobs: whl_file.rename(new_whl_file) print(f'Renamed: {whl_file} -> {new_whl_file}') " - - name: Build 2 + - name: Build 3 if: ${{ (matrix.buildplat[0] != 'macos-13' || matrix['python-version'] != '3.11') && (matrix.buildplat[0] != 'macos-13' || matrix['python-version'] != '3.12') }} run: | make build @@ -167,6 +173,7 @@ jobs: TWINE_PASSWORD: ${{ secrets.TESTPYPI_TOKEN }} run: | twine check dist/*.whl + twine upload --repository-url https://test.pypi.org/legacy/ dist/*.whl --verbose # deploy_with_manylinux: