Skip to content

Commit 4863522

Browse files
committed
[fix] Path compatibility in PowerShell
1 parent d9d0cfa commit 4863522

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ jobs:
88
matrix:
99
os:
1010
- ubuntu-latest
11-
- macos-latest
1211
- windows-latest
1312
runs-on: ${{ matrix.os }}
1413
permissions:
@@ -25,7 +24,7 @@ jobs:
2524
- name: Find built file
2625
shell: pwsh
2726
run: |
28-
echo "FILE_PATH=$(Get-ChildItem -Path build -Recurse -File -Name | Where-Object { $_ -notmatch '^\.' })" >> $env:GITHUB_ENV
27+
echo "FILE_PATH=$(Get-ChildItem -Path build -Recurse -File -Name | Where-Object { $_ -notmatch '^\.' } | ForEach-Object { Join-Path -Path 'build' -ChildPath $_ })" >> $env:GITHUB_ENV
2928
3029
- if: startsWith(github.ref, 'refs/tags/')
3130
uses: softprops/action-gh-release@v2

0 commit comments

Comments
 (0)