Merge pull request #6 from nornen0202/codex/codex-provider

Add Git Bash path for Pages upload
This commit is contained in:
nornen0202 2026-04-06 09:15:33 +09:00 committed by GitHub
commit 0d5bb5677b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 18 additions and 0 deletions

View File

@ -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: