Add Git Bash path for Pages upload
This commit is contained in:
parent
9d75fa2d6e
commit
51e494fabc
|
|
@ -107,6 +107,24 @@ jobs:
|
|||
|
||||
python @args
|
||||
|
||||
- name: Add Git Bash to PATH for Pages packaging
|
||||
shell: powershell
|
||||
run: |
|
||||
$gitBinCandidates = @(
|
||||
"C:\Program Files\Git\bin",
|
||||
"C:\Program Files\Git\usr\bin"
|
||||
)
|
||||
|
||||
foreach ($candidate in $gitBinCandidates) {
|
||||
if (Test-Path (Join-Path $candidate "bash.exe")) {
|
||||
Add-Content -Path $env:GITHUB_PATH -Value $candidate
|
||||
Write-Host "Added Git Bash path: $candidate"
|
||||
exit 0
|
||||
}
|
||||
}
|
||||
|
||||
throw "bash.exe was not found under the expected Git for Windows directories."
|
||||
|
||||
- name: Upload GitHub Pages artifact
|
||||
uses: actions/upload-pages-artifact@v3
|
||||
with:
|
||||
|
|
|
|||
Loading…
Reference in New Issue