Skip to content

Commit 9fecdea

Browse files
committed
try to fix whl resolution issue v3
1 parent 755cf95 commit 9fecdea

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ jobs:
236236

237237
- name: Find Python wheel (Unix)
238238
if: runner.os != 'Windows'
239-
id: find_wheel
239+
id: find_wheel_unix
240240
shell: bash
241241
run: |
242242
for file in "${{ github.workspace }}/python/framework/dist/"*pccl*.whl; do
@@ -247,7 +247,7 @@ jobs:
247247
248248
- name: Find Python wheel (Windows)
249249
if: runner.os == 'Windows'
250-
id: find_wheel
250+
id: find_wheel_windows
251251
shell: powershell
252252
run: |
253253
$file = Get-ChildItem -Path "${{ github.workspace }}\python\framework\dist" -Filter "*pccl*.whl" | Select-Object -First 1
@@ -260,6 +260,6 @@ jobs:
260260
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
261261
with:
262262
upload_url: ${{ needs.create_release.outputs.upload_url }}
263-
asset_path: ${{ steps.find_wheel.outputs.wheel_path }}
264-
asset_name: ${{ steps.find_wheel.outputs.wheel_name }}
263+
asset_path: ${{ runner.os == 'Windows' && steps.find_wheel_windows.outputs.wheel_path || steps.find_wheel_unix.outputs.wheel_path }}
264+
asset_name: ${{ runner.os == 'Windows' && steps.find_wheel_windows.outputs.wheel_name || steps.find_wheel_unix.outputs.wheel_name }}
265265
asset_content_type: application/zip

0 commit comments

Comments
 (0)