Skip to content

Commit b477cc7

Browse files
committed
Fix naming issue
1 parent e5295a6 commit b477cc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ jobs:
143143
shell: bash
144144
run: |
145145
file=$(ls artifact/*.whl)
146-
new_name=$(echo "$file" | sed 's/cp3[0-9]\+-cp3[0-9]\+/py3-none/')
146+
new_name=$(python -c "import sys, re; print(re.sub(r'cp3\d+-cp3\d+', 'py3-none', sys.argv[1]))" "$file")
147147
mv "$file" "$new_name"
148148
149149
- name: Upload Artifacts

0 commit comments

Comments
 (0)