Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix(ci): clean stale bundle dir before build to prevent Linux artifact accumulation

Louis Beaumonte6f32cf00e36
diff --git a/.github/workflows/release-app.yml b/.github/workflows/release-app.yml
index f7418c841..8bb4489d5 100644
--- a/.github/workflows/release-app.yml
+++ b/.github/workflows/release-app.yml
@@ -837,6 +837,11 @@ jobs:
TARGET="${{ matrix.target }}"
BUNDLE_DIR="apps/screenpipe-app-tauri/src-tauri/target/${TARGET}/release/bundle"
+ # Clean stale bundle artifacts from cache — prevents old .deb/.AppImage
+ # files from accumulating and being uploaded alongside the current version
+ echo "Cleaning stale bundle artifacts..."
+ rm -rf "${BUNDLE_DIR}" 2>/dev/null || true
+
for attempt in $(seq 1 $MAX_ATTEMPTS); do
echo "=== Build attempt $attempt/$MAX_ATTEMPTS ==="