From 1e96b18c813c2dd1629468b43d30dc40b7bbea89 Mon Sep 17 00:00:00 2001 From: "Rodrigo Rodriguez (Pragmatismo)" Date: Fri, 24 Apr 2026 01:30:49 +0000 Subject: [PATCH] fix(ci): build with embed-ui feature instead of syncing files --- .forgejo/workflows/botserver.yaml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.forgejo/workflows/botserver.yaml b/.forgejo/workflows/botserver.yaml index 298f5039..1da23b91 100644 --- a/.forgejo/workflows/botserver.yaml +++ b/.forgejo/workflows/botserver.yaml @@ -26,9 +26,9 @@ jobs: git clean -fd git pull git submodule update --init --recursive - - name: Build + - name: Build with embedded UI run: | - CARGO_BUILD_JOBS=4 cargo build -p botserver --bin botserver + CARGO_BUILD_JOBS=4 cargo build -p botserver --bin botserver --features embed-ui - name: Deploy to Stage run: | BINARY=/opt/gbo/work/target/debug/botserver @@ -37,9 +37,3 @@ jobs: ssh -o StrictHostKeyChecking=no ${SYSTEM_USER}@${SYSTEM_HOST} "sudo mv /opt/gbo/bin/botserver-new /opt/gbo/bin/botserver && sudo chmod +x /opt/gbo/bin/botserver && sudo systemctl enable botserver && sudo systemctl start botserver" sleep 10 ssh -o StrictHostKeyChecking=no ${SYSTEM_USER}@${SYSTEM_HOST} "curl -sf http://localhost:8080/health && echo 'BotServer Deployed' || echo 'Failed'" - - name: Sync UI Files to Stage - run: | - # Sync to both possible paths, then copy bin/ui to botui/ui for consistency - rsync -az --delete -e "ssh -o StrictHostKeyChecking=no" /opt/gbo/work/generalbots/botui/ui/ ${SYSTEM_USER}@${SYSTEM_HOST}:/opt/gbo/botui/ui/ - ssh -o StrictHostKeyChecking=no ${SYSTEM_USER}@${SYSTEM_HOST} "sudo incus exec system --project STAGE-GBO -- cp /opt/gbo/botui/ui/suite/chat/chat.html /opt/gbo/bin/ui/suite/chat/chat.html" - ssh -o StrictHostKeyChecking=no ${SYSTEM_USER}@${SYSTEM_HOST} "sudo incus exec system --project STAGE-GBO -- ls -la /opt/gbo/bin/ui/suite/chat/chat.html"