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 59d28b8 commit abeb5cf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,9 @@ jobs:
from pathlib import Path
plat_info = '${{ matrix.buildplat[1] }}'.split('_', 1)[-1]
for whl_file in Path('./dist').glob('*.whl'):
new_name = whl_file.name.replace('universal2', plat_info)
parts = whl_file.stem.split('_', 3)
be_replaced = parts[-1]
new_name = whl_file.name.replace(be_replaced, plat_info)
new_whl_file = whl_file.with_name(new_name)
whl_file.rename(new_whl_file)
print(f'Renamed: {whl_file} -> {new_whl_file}')
Expand Down

0 comments on commit abeb5cf

Please sign in to comment.