Fix the Windows workflow

This commit is contained in:
oobabooga 2025-06-10 19:34:41 -07:00
parent a86a5a026e
commit 43fc170224
3 changed files with 15 additions and 3 deletions

View file

@ -176,7 +176,11 @@ jobs:
fi
# Rename back after creating the zip (the next step assumes this folder exists)
mv text-generation-webui-${VERSION_CLEAN} text-generation-webui
if [[ "$RUNNER_OS" == "Windows" ]]; then
powershell -Command "Move-Item -Path text-generation-webui-${VERSION_CLEAN} -Destination text-generation-webui -Force"
else
mv text-generation-webui-${VERSION_CLEAN} text-generation-webui
fi
- name: Upload files to a GitHub release
id: upload-release

View file

@ -162,7 +162,11 @@ jobs:
fi
# Rename back after creating the zip (the next step assumes this folder exists)
mv text-generation-webui-${VERSION_CLEAN} text-generation-webui
if [[ "$RUNNER_OS" == "Windows" ]]; then
powershell -Command "Move-Item -Path text-generation-webui-${VERSION_CLEAN} -Destination text-generation-webui -Force"
else
mv text-generation-webui-${VERSION_CLEAN} text-generation-webui
fi
- name: Upload files to a GitHub release
id: upload-release

View file

@ -186,7 +186,11 @@ jobs:
fi
# Rename back after creating the zip (the next step assumes this folder exists)
mv text-generation-webui-${VERSION_CLEAN} text-generation-webui
if [[ "$RUNNER_OS" == "Windows" ]]; then
powershell -Command "Move-Item -Path text-generation-webui-${VERSION_CLEAN} -Destination text-generation-webui -Force"
else
mv text-generation-webui-${VERSION_CLEAN} text-generation-webui
fi
- name: Upload files to a GitHub release
id: upload-release