Skip to content

Commit

Permalink
rewrite deploy with macos
Browse files Browse the repository at this point in the history
  • Loading branch information
SunsetWolf committed Dec 19, 2024
1 parent ece5637 commit 848e1f9
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ jobs:
# run: |
# make build
- name: Build 1
run: |
make build
- name: Rename 1
run: |
make build
python -c "
Expand All @@ -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]
Expand All @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 848e1f9

Please sign in to comment.