diff --git a/.forgejo/workflows/botui.yaml b/.forgejo/workflows/botui.yaml index 88c75a5..a762d06 100644 --- a/.forgejo/workflows/botui.yaml +++ b/.forgejo/workflows/botui.yaml @@ -101,18 +101,18 @@ jobs: echo "Step 2: Backing up old binary..." ssh $SSH_ARGS system "cp /opt/gbo/bin/botui /tmp/botui.bak" echo "Step 3: Stopping botui service..." - ssh $SSH_ARGS system "sudo systemctl stop botui || true" + ssh $SSH_ARGS system "sudo systemctl stop ui || true" echo "Step 4: Transferring new binary..." tar cf - -C /opt/gbo/data/botui/target/debug botui | gzip -1 | ssh $SSH_ARGS system "gzip -d | tar xf - -C /opt/gbo/bin && chmod +x /opt/gbo/bin/botui && chown gbuser:gbuser /opt/gbo/bin/botui && echo 'Transfer complete'" echo "Step 5: Starting botui service..." - ssh $SSH_ARGS system "sudo systemctl start botui && echo 'BotUI started'" + ssh $SSH_ARGS system "sudo systemctl start ui && echo 'BotUI started'" echo "=== Deploy completed ===" - name: Verify botui started run: | sleep 15 SSH_ARGS="-i /home/gbuser/.ssh/id_ed25519 -o StrictHostKeyChecking=no -o ConnectTimeout=5 -o ServerAliveInterval=5 -o ServerAliveCountMax=2 -o BatchMode=yes" - ssh $SSH_ARGS system "pgrep -f botui >/dev/null && echo 'OK: botui is running' || echo 'WARNING: botui may still be starting'" + ssh $SSH_ARGS system "pgrep -f botui >/dev/null && echo 'OK: ui is running' || echo 'WARNING: ui may still be starting'" - name: Save deploy log if: always()