diff --git a/.github/workflows/build-portable-release-cuda.yml b/.github/workflows/build-portable-release-cuda.yml index 87ab7f9e..a5759112 100644 --- a/.github/workflows/build-portable-release-cuda.yml +++ b/.github/workflows/build-portable-release-cuda.yml @@ -150,15 +150,16 @@ jobs: # 5. Clean up rm -rf .git cmd* update_wizard* Colab-TextGen-GPU.ipynb docker setup.cfg .github .gitignore requirements/ one_click.py - # 6. Create ZIP file + # 6. Create archive cd .. - 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-${VERSION_CLEAN} -DestinationPath $ZIP_NAME" + ARCHIVE_NAME="textgen-portable-${VERSION_CLEAN}-${PLATFORM}-cuda${CUDA_VERSION}.zip" + echo "Creating archive: $ARCHIVE_NAME" + powershell -Command "Compress-Archive -Path text-generation-webui-${VERSION_CLEAN} -DestinationPath $ARCHIVE_NAME" else - zip -r "$ZIP_NAME" "text-generation-webui-${VERSION_CLEAN}" + ARCHIVE_NAME="textgen-portable-${VERSION_CLEAN}-${PLATFORM}-cuda${CUDA_VERSION}.tar.gz" + echo "Creating archive: $ARCHIVE_NAME" + tar czf "$ARCHIVE_NAME" "text-generation-webui-${VERSION_CLEAN}" fi - name: Upload files to a GitHub release @@ -167,7 +168,7 @@ jobs: continue-on-error: true with: repo_token: ${{ secrets.GITHUB_TOKEN }} - file: ../textgen-portable-*.zip + file: ../textgen-portable-* tag: ${{ inputs.version }} file_glob: true make_latest: false diff --git a/.github/workflows/build-portable-release-rocm.yml b/.github/workflows/build-portable-release-rocm.yml index 5b43b2d3..6f9ea4ec 100644 --- a/.github/workflows/build-portable-release-rocm.yml +++ b/.github/workflows/build-portable-release-rocm.yml @@ -145,15 +145,16 @@ jobs: # 5. Clean up rm -rf .git cmd* update_wizard* Colab-TextGen-GPU.ipynb docker setup.cfg .github .gitignore requirements/ one_click.py - # 6. Create ZIP file + # 6. Create archive cd .. - ZIP_NAME="textgen-portable-${VERSION_CLEAN}-${PLATFORM}-rocm.zip" - echo "Creating archive: $ZIP_NAME" - if [[ "$RUNNER_OS" == "Windows" ]]; then - powershell -Command "Compress-Archive -Path text-generation-webui-${VERSION_CLEAN} -DestinationPath $ZIP_NAME" + ARCHIVE_NAME="textgen-portable-${VERSION_CLEAN}-${PLATFORM}-rocm.zip" + echo "Creating archive: $ARCHIVE_NAME" + powershell -Command "Compress-Archive -Path text-generation-webui-${VERSION_CLEAN} -DestinationPath $ARCHIVE_NAME" else - zip -r "$ZIP_NAME" "text-generation-webui-${VERSION_CLEAN}" + ARCHIVE_NAME="textgen-portable-${VERSION_CLEAN}-${PLATFORM}-rocm.tar.gz" + echo "Creating archive: $ARCHIVE_NAME" + tar czf "$ARCHIVE_NAME" "text-generation-webui-${VERSION_CLEAN}" fi - name: Upload files to a GitHub release @@ -162,7 +163,7 @@ jobs: continue-on-error: true with: repo_token: ${{ secrets.GITHUB_TOKEN }} - file: ../textgen-portable-*.zip + file: ../textgen-portable-* tag: ${{ inputs.version }} file_glob: true make_latest: false diff --git a/.github/workflows/build-portable-release-vulkan.yml b/.github/workflows/build-portable-release-vulkan.yml index e8b75b5b..b98b2e5e 100644 --- a/.github/workflows/build-portable-release-vulkan.yml +++ b/.github/workflows/build-portable-release-vulkan.yml @@ -145,15 +145,16 @@ jobs: # 5. Clean up rm -rf .git cmd* update_wizard* Colab-TextGen-GPU.ipynb docker setup.cfg .github .gitignore requirements/ one_click.py - # 6. Create ZIP file + # 6. Create archive cd .. - 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-${VERSION_CLEAN} -DestinationPath $ZIP_NAME" + ARCHIVE_NAME="textgen-portable-${VERSION_CLEAN}-${PLATFORM}-vulkan.zip" + echo "Creating archive: $ARCHIVE_NAME" + powershell -Command "Compress-Archive -Path text-generation-webui-${VERSION_CLEAN} -DestinationPath $ARCHIVE_NAME" else - zip -r "$ZIP_NAME" "text-generation-webui-${VERSION_CLEAN}" + ARCHIVE_NAME="textgen-portable-${VERSION_CLEAN}-${PLATFORM}-vulkan.tar.gz" + echo "Creating archive: $ARCHIVE_NAME" + tar czf "$ARCHIVE_NAME" "text-generation-webui-${VERSION_CLEAN}" fi - name: Upload files to a GitHub release @@ -162,7 +163,7 @@ jobs: continue-on-error: true with: repo_token: ${{ secrets.GITHUB_TOKEN }} - file: ../textgen-portable-*.zip + file: ../textgen-portable-* tag: ${{ inputs.version }} file_glob: true make_latest: false diff --git a/.github/workflows/build-portable-release.yml b/.github/workflows/build-portable-release.yml index cc584fb2..1bd4e163 100644 --- a/.github/workflows/build-portable-release.yml +++ b/.github/workflows/build-portable-release.yml @@ -171,15 +171,16 @@ jobs: # 5. Clean up rm -rf .git cmd* update_wizard* Colab-TextGen-GPU.ipynb docker setup.cfg .github .gitignore requirements/ one_click.py - # 6. Create ZIP file + # 6. Create archive cd .. - 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-${VERSION_CLEAN} -DestinationPath $ZIP_NAME" + ARCHIVE_NAME="textgen-portable-${VERSION_CLEAN}-${PLATFORM}.zip" + echo "Creating archive: $ARCHIVE_NAME" + powershell -Command "Compress-Archive -Path text-generation-webui-${VERSION_CLEAN} -DestinationPath $ARCHIVE_NAME" else - zip -r "$ZIP_NAME" "text-generation-webui-${VERSION_CLEAN}" + ARCHIVE_NAME="textgen-portable-${VERSION_CLEAN}-${PLATFORM}.tar.gz" + echo "Creating archive: $ARCHIVE_NAME" + tar czf "$ARCHIVE_NAME" "text-generation-webui-${VERSION_CLEAN}" fi - name: Upload files to a GitHub release @@ -188,7 +189,7 @@ jobs: continue-on-error: true with: repo_token: ${{ secrets.GITHUB_TOKEN }} - file: ../textgen-portable-*.zip + file: ../textgen-portable-* tag: ${{ inputs.version }} file_glob: true make_latest: false