From 43fc170224e0fb2ffd93c93f6a2b1c16e37344aa Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Tue, 10 Jun 2025 19:34:41 -0700 Subject: [PATCH] Fix the Windows workflow --- .github/workflows/build-portable-release-cuda.yml | 6 +++++- .github/workflows/build-portable-release-vulkan.yml | 6 +++++- .github/workflows/build-portable-release.yml | 6 +++++- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-portable-release-cuda.yml b/.github/workflows/build-portable-release-cuda.yml index 0de2d145..f6d8b39c 100644 --- a/.github/workflows/build-portable-release-cuda.yml +++ b/.github/workflows/build-portable-release-cuda.yml @@ -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 diff --git a/.github/workflows/build-portable-release-vulkan.yml b/.github/workflows/build-portable-release-vulkan.yml index 8437c56e..55ce13d5 100644 --- a/.github/workflows/build-portable-release-vulkan.yml +++ b/.github/workflows/build-portable-release-vulkan.yml @@ -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 diff --git a/.github/workflows/build-portable-release.yml b/.github/workflows/build-portable-release.yml index f60837bf..5df2db31 100644 --- a/.github/workflows/build-portable-release.yml +++ b/.github/workflows/build-portable-release.yml @@ -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