From 752461567102f61f3727d5d60e16fdce333514d4 Mon Sep 17 00:00:00 2001 From: MacRimi <123239993+MacRimi@users.noreply.github.com> Date: Wed, 18 Mar 2026 11:15:14 +0100 Subject: [PATCH] Save compiled AppImage files before git operations Added steps to save compiled AppImage files before cleaning local changes. --- .github/workflows/build-appimage-manual.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-appimage-manual.yml b/.github/workflows/build-appimage-manual.yml index 6d4b2d48..c697b3db 100644 --- a/.github/workflows/build-appimage-manual.yml +++ b/.github/workflows/build-appimage-manual.yml @@ -73,12 +73,20 @@ jobs: git config --global user.name "github-actions[bot]" git config --global user.email "github-actions[bot]@users.noreply.github.com" + # Guardar los archivos compilados antes de tocar git + mkdir -p /tmp/appimage-dist + cp AppImage/dist/*.AppImage /tmp/appimage-dist/ + cp AppImage/dist/ProxMenux-Monitor.AppImage.sha256 /tmp/appimage-dist/ + + # Limpiar cambios locales para evitar conflictos + git stash --include-untracked + git fetch origin "$CURRENT_BRANCH" git worktree add /tmp/target-branch origin/"$CURRENT_BRANCH" rm -f /tmp/target-branch/AppImage/*.AppImage /tmp/target-branch/AppImage/*.sha256 || true - cp AppImage/dist/*.AppImage /tmp/target-branch/AppImage/ - cp AppImage/dist/ProxMenux-Monitor.AppImage.sha256 /tmp/target-branch/AppImage/ + cp /tmp/appimage-dist/*.AppImage /tmp/target-branch/AppImage/ + cp /tmp/appimage-dist/ProxMenux-Monitor.AppImage.sha256 /tmp/target-branch/AppImage/ cd /tmp/target-branch git add AppImage/*.AppImage AppImage/*.sha256