mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2025-12-06 07:12:10 +01:00
Undo changes to portable builds
This commit is contained in:
parent
e8041069e2
commit
00fbbd6f57
|
|
@ -160,31 +160,16 @@ jobs:
|
||||||
rm requirements_cuda_temp.txt
|
rm requirements_cuda_temp.txt
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# 6. Move up and rename folder to include version
|
# 6. Create ZIP file
|
||||||
cd ..
|
cd ..
|
||||||
VERSION_CLEAN="${VERSION#v}"
|
VERSION_CLEAN="${VERSION#v}"
|
||||||
if [[ "$RUNNER_OS" == "Windows" ]]; then
|
|
||||||
sleep 3
|
|
||||||
powershell -Command "Move-Item -Path text-generation-webui -Destination text-generation-webui-${VERSION_CLEAN} -Force"
|
|
||||||
else
|
|
||||||
mv text-generation-webui text-generation-webui-${VERSION_CLEAN}
|
|
||||||
fi
|
|
||||||
|
|
||||||
# 7. Create ZIP file
|
|
||||||
ZIP_NAME="textgen-portable-${VERSION_CLEAN}-${PLATFORM}-cuda${CUDA_VERSION}.zip"
|
ZIP_NAME="textgen-portable-${VERSION_CLEAN}-${PLATFORM}-cuda${CUDA_VERSION}.zip"
|
||||||
echo "Creating archive: $ZIP_NAME"
|
echo "Creating archive: $ZIP_NAME"
|
||||||
|
|
||||||
if [[ "$RUNNER_OS" == "Windows" ]]; then
|
if [[ "$RUNNER_OS" == "Windows" ]]; then
|
||||||
powershell -Command "Compress-Archive -Path text-generation-webui-${VERSION_CLEAN} -DestinationPath $ZIP_NAME"
|
powershell -Command "Compress-Archive -Path text-generation-webui -DestinationPath $ZIP_NAME"
|
||||||
else
|
else
|
||||||
zip -r "$ZIP_NAME" text-generation-webui-${VERSION_CLEAN}
|
zip -r "$ZIP_NAME" text-generation-webui
|
||||||
fi
|
|
||||||
|
|
||||||
# Rename back after creating the zip (the next step assumes this folder exists)
|
|
||||||
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
|
fi
|
||||||
|
|
||||||
- name: Upload files to a GitHub release
|
- name: Upload files to a GitHub release
|
||||||
|
|
|
||||||
|
|
@ -146,31 +146,16 @@ jobs:
|
||||||
echo "Installing Python packages from $REQ_FILE..."
|
echo "Installing Python packages from $REQ_FILE..."
|
||||||
$PIP_PATH install --target="./$PACKAGES_PATH" -r "$REQ_FILE"
|
$PIP_PATH install --target="./$PACKAGES_PATH" -r "$REQ_FILE"
|
||||||
|
|
||||||
# 5. Move up and rename folder to include version
|
# 6. Create ZIP file
|
||||||
cd ..
|
cd ..
|
||||||
VERSION_CLEAN="${VERSION#v}"
|
VERSION_CLEAN="${VERSION#v}"
|
||||||
if [[ "$RUNNER_OS" == "Windows" ]]; then
|
|
||||||
sleep 3
|
|
||||||
powershell -Command "Move-Item -Path text-generation-webui -Destination text-generation-webui-${VERSION_CLEAN} -Force"
|
|
||||||
else
|
|
||||||
mv text-generation-webui text-generation-webui-${VERSION_CLEAN}
|
|
||||||
fi
|
|
||||||
|
|
||||||
# 6. Create ZIP file
|
|
||||||
ZIP_NAME="textgen-portable-${VERSION_CLEAN}-${PLATFORM}-vulkan.zip"
|
ZIP_NAME="textgen-portable-${VERSION_CLEAN}-${PLATFORM}-vulkan.zip"
|
||||||
echo "Creating archive: $ZIP_NAME"
|
echo "Creating archive: $ZIP_NAME"
|
||||||
|
|
||||||
if [[ "$RUNNER_OS" == "Windows" ]]; then
|
if [[ "$RUNNER_OS" == "Windows" ]]; then
|
||||||
powershell -Command "Compress-Archive -Path text-generation-webui-${VERSION_CLEAN} -DestinationPath $ZIP_NAME"
|
powershell -Command "Compress-Archive -Path text-generation-webui -DestinationPath $ZIP_NAME"
|
||||||
else
|
else
|
||||||
zip -r "$ZIP_NAME" text-generation-webui-${VERSION_CLEAN}
|
zip -r "$ZIP_NAME" text-generation-webui
|
||||||
fi
|
|
||||||
|
|
||||||
# Rename back after creating the zip (the next step assumes this folder exists)
|
|
||||||
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
|
fi
|
||||||
|
|
||||||
- name: Upload files to a GitHub release
|
- name: Upload files to a GitHub release
|
||||||
|
|
|
||||||
21
.github/workflows/build-portable-release.yml
vendored
21
.github/workflows/build-portable-release.yml
vendored
|
|
@ -170,31 +170,16 @@ jobs:
|
||||||
echo "Installing Python packages from $REQ_FILE..."
|
echo "Installing Python packages from $REQ_FILE..."
|
||||||
$PIP_PATH install --target="./$PACKAGES_PATH" -r "$REQ_FILE"
|
$PIP_PATH install --target="./$PACKAGES_PATH" -r "$REQ_FILE"
|
||||||
|
|
||||||
# 5. Move up and rename folder to include version
|
# 5. Create ZIP file
|
||||||
cd ..
|
cd ..
|
||||||
VERSION_CLEAN="${VERSION#v}"
|
VERSION_CLEAN="${VERSION#v}"
|
||||||
if [[ "$RUNNER_OS" == "Windows" ]]; then
|
|
||||||
sleep 3 # Give time for any lingering file handles to close
|
|
||||||
powershell -Command "Move-Item -Path text-generation-webui -Destination text-generation-webui-${VERSION_CLEAN} -Force"
|
|
||||||
else
|
|
||||||
mv text-generation-webui text-generation-webui-${VERSION_CLEAN}
|
|
||||||
fi
|
|
||||||
|
|
||||||
# 6. Create ZIP file
|
|
||||||
ZIP_NAME="textgen-portable-${VERSION_CLEAN}-${PLATFORM}.zip"
|
ZIP_NAME="textgen-portable-${VERSION_CLEAN}-${PLATFORM}.zip"
|
||||||
echo "Creating archive: $ZIP_NAME"
|
echo "Creating archive: $ZIP_NAME"
|
||||||
|
|
||||||
if [[ "$RUNNER_OS" == "Windows" ]]; then
|
if [[ "$RUNNER_OS" == "Windows" ]]; then
|
||||||
powershell -Command "Compress-Archive -Path text-generation-webui-${VERSION_CLEAN} -DestinationPath $ZIP_NAME"
|
powershell -Command "Compress-Archive -Path text-generation-webui -DestinationPath $ZIP_NAME"
|
||||||
else
|
else
|
||||||
zip -r "$ZIP_NAME" text-generation-webui-${VERSION_CLEAN}
|
zip -r "$ZIP_NAME" text-generation-webui
|
||||||
fi
|
|
||||||
|
|
||||||
# Rename back after creating the zip (the next step assumes this folder exists)
|
|
||||||
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
|
fi
|
||||||
|
|
||||||
- name: Upload files to a GitHub release
|
- name: Upload files to a GitHub release
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue