From 9f862d5afc7620a709c82079539ba5e0d854c124 Mon Sep 17 00:00:00 2001 From: Shantur Rathore Date: Fri, 21 Nov 2025 20:17:41 +0000 Subject: [PATCH] Require all linux tauri bundles and upload raw artifacts --- .github/workflows/build-and-upload.yml | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-and-upload.yml b/.github/workflows/build-and-upload.yml index 9182706e..898eefc1 100644 --- a/.github/workflows/build-and-upload.yml +++ b/.github/workflows/build-and-upload.yml @@ -351,19 +351,29 @@ jobs: rm -rf "$ARTIFACT_DIR" mkdir -p "$ARTIFACT_DIR" shopt -s nullglob globstar - first_artifact=$(find "$SEARCH_ROOT" -type f \( -name "*.AppImage" -o -name "*.deb" -o -name "*.rpm" -o -name "*.tar.gz" \) | head -n1) - if [ -n "$first_artifact" ]; then - zip -j "$ARTIFACT_DIR/CodeNomad-Tauri-${VERSION}-linux-x64.zip" "$first_artifact" - else - echo "No bundled artifact found under $SEARCH_ROOT" >&2 + + find_one() { + find "$SEARCH_ROOT" -type f -iname "$1" | head -n1 + } + + appimage=$(find_one "*.AppImage") + deb=$(find_one "*.deb") + rpm=$(find_one "*.rpm") + + if [ -z "$appimage" ] || [ -z "$deb" ] || [ -z "$rpm" ]; then + echo "Missing bundle(s): appimage=${appimage:-none} deb=${deb:-none} rpm=${rpm:-none}" >&2 exit 1 fi + cp "$appimage" "$ARTIFACT_DIR/CodeNomad-Tauri-${VERSION}-linux-x64.AppImage" + cp "$deb" "$ARTIFACT_DIR/CodeNomad-Tauri-${VERSION}-linux-x64.deb" + cp "$rpm" "$ARTIFACT_DIR/CodeNomad-Tauri-${VERSION}-linux-x64.rpm" + - name: Upload Tauri release assets (Linux) run: | set -euo pipefail shopt -s nullglob - for file in packages/tauri-app/release-tauri/*.zip; do + for file in packages/tauri-app/release-tauri/*; do [ -f "$file" ] || continue echo "Uploading $file" gh release upload "$TAG" "$file" --clobber