diff --git a/.gitea/workflows/lint.yml b/.gitea/workflows/lint.yml index abb83d7..4f57e3c 100644 --- a/.gitea/workflows/lint.yml +++ b/.gitea/workflows/lint.yml @@ -203,24 +203,14 @@ jobs: - name: Deploy via OTA run: | SENSORS="muddy-storm:192.168.129.29 amber-maple:192.168.129.30 hollow-acorn:192.168.129.31" - OTA_PORT=8899 EXPECTED_VERSION="${{ github.ref_name }}" - # Get runner IP (first non-loopback interface) - RUNNER_IP=$(hostname -I | awk '{print $1}') - echo "Runner IP: $RUNNER_IP" - - # Start HTTP server to serve firmware - cd get-started/csi_recv_router/build - python3 -m http.server $OTA_PORT & - HTTP_PID=$! - sleep 2 - - FIRMWARE_URL="http://${RUNNER_IP}:${OTA_PORT}/csi_recv_router.bin" + # Use Gitea release URL (uploaded in previous step) + FIRMWARE_URL="https://git.mymx.me/${{ github.repository }}/releases/download/${{ github.ref_name }}/csi_recv_router.bin" echo "Firmware URL: $FIRMWARE_URL" - # Verify server is running - curl -sI "http://localhost:${OTA_PORT}/csi_recv_router.bin" | head -1 + # Verify firmware is accessible + curl -sI "$FIRMWARE_URL" | head -1 # Deploy to all sensors in parallel echo "=== Deploying to all sensors in parallel ===" @@ -269,9 +259,6 @@ jobs: fi done - # Stop HTTP server - kill $HTTP_PID 2>/dev/null || true - # Final status echo "=== Final sensor status ===" for entry in $SENSORS; do