Skip to content

Commit c36d7f6

Browse files
committed
try to fix upload release asset on windows
1 parent 94668fa commit c36d7f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,12 +269,12 @@ jobs:
269269
SUPPORT: ${{ matrix.pccl_build_cuda_support }}
270270
run: |
271271
$file = Get-ChildItem -Path "${{ github.workspace }}\python\framework\dist" -Filter "*pccl*.whl" | Select-Object -First 1
272-
echo "wheel_path=$($file.FullName)" | Out-File -FilePath $env:GITHUB_OUTPUT -Encoding utf8
272+
Add-Content -Path $env:GITHUB_OUTPUT -Value "wheel_path=$($file.FullName)"
273273
$base = $file.Name
274274
$name = [System.IO.Path]::GetFileNameWithoutExtension($base)
275275
if ($env:SUPPORT -eq 'ON') { $suffix = 'cuda' } else { $suffix = 'nocuda' }
276276
$newName = "$name-$suffix.whl"
277-
echo "wheel_name=$newName" | Out-File -FilePath $env:GITHUB_OUTPUT -Encoding utf8
277+
Add-Content -Path $env:GITHUB_OUTPUT -Value "wheel_name=$newName"
278278
279279
- name: Upload Release Asset (Unix)
280280
if: runner.os != 'Windows'

0 commit comments

Comments
 (0)