Skip to content

Commit e5f1e49

Browse files
committed
try to fix whl resolution issue
1 parent c7df8af commit e5f1e49

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/publish.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,12 +234,19 @@ jobs:
234234
name: pypccl-${{ runner.os }}-${{ matrix.build_type }}-${{ matrix.pccl_build_cuda_support == 'ON' && 'cuda' || 'nocuda' }}-${{ github.run_id }}
235235
path: ./python/framework/dist/pypccl-*.whl
236236

237+
- name: Find Python wheel
238+
id: find_wheel
239+
run: |
240+
path=$(ls "${{ github.workspace }}/python/framework/dist/"*pccl*.whl)
241+
echo "wheel_path=$path" >> "$GITHUB_OUTPUT"
242+
echo "wheel_name=$(basename "$path")" >> "$GITHUB_OUTPUT"
243+
237244
- name: Upload Release Asset
238245
uses: actions/upload-release-asset@v1
239246
env:
240247
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
241248
with:
242249
upload_url: ${{ needs.create_release.outputs.upload_url }}
243-
asset_path: ./python/framework/dist/pypccl-*.whl
244-
asset_name: pypccl-${{ matrix.os }}-${{ matrix.build_type }}-${{ matrix.pccl_build_cuda_support == 'ON' && 'cuda' || 'nocuda' }}-${{ github.run_id }}.whl
250+
asset_path: ${{ steps.find_wheel.outputs.wheel_path }}
251+
asset_name: ${{ steps.find_wheel.outputs.wheel_name }}
245252
asset_content_type: application/zip

0 commit comments

Comments
 (0)