Synthesis Hackathon submission. Built on IronClaw fork. 26 tools: Locus payments (6), Uniswap DeFi (3), onchain reads (3), security scanning (2), wallet analytics (3), OpenRouter LLM (2), self-hosted scraping (3), portfolio (2), synthesis (2). 3 defense hooks: spending limits ($5/tx, $25/session), contract guard (SCONE-bench vulnerability patterns), credential guard (blocks private key/seed phrase leaks). Payment system (Polar.sh), landing page, license key gating (Free/Pro/ Unlimited tiers), brand rename from IronClaw to Steelbot. 9,669 lines of code. 3,665 tests passing. Zero clippy warnings. Real USDC transactions on Base chain. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
61 lines
1.7 KiB
YAML
61 lines
1.7 KiB
YAML
name: Steelbot Deploy
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: steelbot-deploy
|
|
cancel-in-progress: false
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
# ── Quality gate (same checks as steelbot-ci.yml) ───────────────
|
|
quality:
|
|
name: Quality Gate
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
with:
|
|
components: rustfmt, clippy
|
|
- uses: Swatinem/rust-cache@v2
|
|
with:
|
|
key: deploy-quality
|
|
- name: Check formatting
|
|
run: cargo fmt --all -- --check
|
|
- name: Clippy
|
|
run: cargo clippy --all --all-features -- -D warnings
|
|
- name: Unit tests
|
|
run: cargo test --lib
|
|
|
|
# ── Deploy to Fly.io ────────────────────────────────────────────
|
|
deploy:
|
|
name: Deploy to Fly.io
|
|
needs: quality
|
|
runs-on: ubuntu-latest
|
|
environment: production
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: superfly/flyctl-actions/setup-flyctl@master
|
|
|
|
- name: Deploy
|
|
run: flyctl deploy --remote-only
|
|
env:
|
|
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
|
|
|
|
- name: Verify deployment health
|
|
run: |
|
|
echo "Waiting for deployment to stabilize..."
|
|
sleep 15
|
|
STATUS=$(curl -sf "https://steelbot.fly.dev/api/health" || echo "unhealthy")
|
|
echo "Health check response: $STATUS"
|
|
if [ "$STATUS" = "unhealthy" ]; then
|
|
echo "Warning: Health check did not return OK. Check fly logs."
|
|
exit 1
|
|
fi
|