mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2026-04-05 20:03:48 +00:00
Save compiled AppImage files before git operations
Added steps to save compiled AppImage files before cleaning local changes.
This commit is contained in:
12
.github/workflows/build-appimage-manual.yml
vendored
12
.github/workflows/build-appimage-manual.yml
vendored
@@ -73,12 +73,20 @@ jobs:
|
|||||||
git config --global user.name "github-actions[bot]"
|
git config --global user.name "github-actions[bot]"
|
||||||
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
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 fetch origin "$CURRENT_BRANCH"
|
||||||
git worktree add /tmp/target-branch 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
|
rm -f /tmp/target-branch/AppImage/*.AppImage /tmp/target-branch/AppImage/*.sha256 || true
|
||||||
cp AppImage/dist/*.AppImage /tmp/target-branch/AppImage/
|
cp /tmp/appimage-dist/*.AppImage /tmp/target-branch/AppImage/
|
||||||
cp AppImage/dist/ProxMenux-Monitor.AppImage.sha256 /tmp/target-branch/AppImage/
|
cp /tmp/appimage-dist/ProxMenux-Monitor.AppImage.sha256 /tmp/target-branch/AppImage/
|
||||||
|
|
||||||
cd /tmp/target-branch
|
cd /tmp/target-branch
|
||||||
git add AppImage/*.AppImage AppImage/*.sha256
|
git add AppImage/*.AppImage AppImage/*.sha256
|
||||||
|
|||||||
Reference in New Issue
Block a user