fix(ci): build with embed-ui feature instead of syncing files
Some checks failed
Bottest CI / build (push) Waiting to run
BotUI CI / build (push) Waiting to run
Botlib CI / build (push) Successful in 2s
BotServer CI / build (push) Has been cancelled

This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2026-04-24 01:30:49 +00:00
parent 0f7fe82523
commit 1e96b18c81

View file

@ -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"