Add version to portable build folder names

This commit is contained in:
oobabooga 2025-06-08 21:55:49 -07:00
parent f9a007c6a8
commit 80637cae28
3 changed files with 18 additions and 9 deletions

View file

@ -160,16 +160,19 @@ jobs:
rm requirements_cuda_temp.txt
fi
# 6. Create ZIP file
# 6. Move up and rename folder to include version
cd ..
VERSION_CLEAN="${VERSION#v}"
mv text-generation-webui text-generation-webui-${VERSION_CLEAN}
# 7. Create ZIP file
ZIP_NAME="textgen-portable-${VERSION_CLEAN}-${PLATFORM}-cuda${CUDA_VERSION}.zip"
echo "Creating archive: $ZIP_NAME"
if [[ "$RUNNER_OS" == "Windows" ]]; then
powershell -Command "Compress-Archive -Path text-generation-webui -DestinationPath $ZIP_NAME"
powershell -Command "Compress-Archive -Path text-generation-webui-${VERSION_CLEAN} -DestinationPath $ZIP_NAME"
else
zip -r "$ZIP_NAME" text-generation-webui
zip -r "$ZIP_NAME" text-generation-webui-${VERSION_CLEAN}
fi
- name: Upload files to a GitHub release

View file

@ -146,16 +146,19 @@ jobs:
echo "Installing Python packages from $REQ_FILE..."
$PIP_PATH install --target="./$PACKAGES_PATH" -r "$REQ_FILE"
# 6. Create ZIP file
# 5. Move up and rename folder to include version
cd ..
VERSION_CLEAN="${VERSION#v}"
mv text-generation-webui text-generation-webui-${VERSION_CLEAN}
# 6. Create ZIP file
ZIP_NAME="textgen-portable-${VERSION_CLEAN}-${PLATFORM}-vulkan.zip"
echo "Creating archive: $ZIP_NAME"
if [[ "$RUNNER_OS" == "Windows" ]]; then
powershell -Command "Compress-Archive -Path text-generation-webui -DestinationPath $ZIP_NAME"
powershell -Command "Compress-Archive -Path text-generation-webui-${VERSION_CLEAN} -DestinationPath $ZIP_NAME"
else
zip -r "$ZIP_NAME" text-generation-webui
zip -r "$ZIP_NAME" text-generation-webui-${VERSION_CLEAN}
fi
- name: Upload files to a GitHub release

View file

@ -170,16 +170,19 @@ jobs:
echo "Installing Python packages from $REQ_FILE..."
$PIP_PATH install --target="./$PACKAGES_PATH" -r "$REQ_FILE"
# 5. Create ZIP file
# 5. Move up and rename folder to include version
cd ..
VERSION_CLEAN="${VERSION#v}"
mv text-generation-webui text-generation-webui-${VERSION_CLEAN}
# 6. Create ZIP file
ZIP_NAME="textgen-portable-${VERSION_CLEAN}-${PLATFORM}.zip"
echo "Creating archive: $ZIP_NAME"
if [[ "$RUNNER_OS" == "Windows" ]]; then
powershell -Command "Compress-Archive -Path text-generation-webui -DestinationPath $ZIP_NAME"
powershell -Command "Compress-Archive -Path text-generation-webui-${VERSION_CLEAN} -DestinationPath $ZIP_NAME"
else
zip -r "$ZIP_NAME" text-generation-webui
zip -r "$ZIP_NAME" text-generation-webui-${VERSION_CLEAN}
fi
- name: Upload files to a GitHub release