mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-01-20 15:40:23 +01:00
Add version to portable build folder names
This commit is contained in:
parent
f9a007c6a8
commit
80637cae28
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
9
.github/workflows/build-portable-release.yml
vendored
9
.github/workflows/build-portable-release.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue