Skip to content
Open

kk #81

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:

concurrency:
group: ci-${{ github.ref }}
Expand Down Expand Up @@ -102,6 +103,10 @@ jobs:
NEXT_PUBLIC_HEDERA_TASK_BOARD: ${{ secrets.NEXT_PUBLIC_HEDERA_TASK_BOARD }}
NEXT_PUBLIC_HEDERA_AGENT_NFT: ${{ secrets.NEXT_PUBLIC_HEDERA_AGENT_NFT }}
NEXT_PUBLIC_HEDERA_MOCK_LINK: ${{ secrets.NEXT_PUBLIC_HEDERA_MOCK_LINK }}
NEXT_PUBLIC_LINK_TREASURY: ${{ secrets.NEXT_PUBLIC_LINK_TREASURY }}
NEXT_PUBLIC_LINK_AGENT_REGISTRY: ${{ secrets.NEXT_PUBLIC_LINK_AGENT_REGISTRY }}
NEXT_PUBLIC_LINK_ASN_REGISTRY: ${{ secrets.NEXT_PUBLIC_LINK_ASN_REGISTRY }}
NEXT_PUBLIC_LINK_TASK_BOARD: ${{ secrets.NEXT_PUBLIC_LINK_TASK_BOARD }}
NEXT_PUBLIC_GITHUB_APP_SLUG: ${{ secrets.NEXT_PUBLIC_GITHUB_APP_SLUG }}
NEXT_PUBLIC_SUPER_ADMINS: ${{ secrets.NEXT_PUBLIC_SUPER_ADMINS }}
NEXT_PUBLIC_OPENCLAW_WORKSPACE: ${{ secrets.NEXT_PUBLIC_OPENCLAW_WORKSPACE }}
Expand All @@ -115,8 +120,9 @@ jobs:
cache: npm
cache-dependency-path: SwarmApp/package-lock.json
- run: npm ci
- name: Build and Deploy to Netlify
run: npx netlify-cli deploy --prod --build --site=${{ secrets.NETLIFY_SITE_ID }} --auth=${{ secrets.NETLIFY_AUTH_TOKEN }}
- run: npm run build
- name: Deploy to Netlify
run: npx netlify-cli deploy --prod --dir=.next --site=${{ secrets.NETLIFY_SITE_ID }} --auth=${{ secrets.NETLIFY_AUTH_TOKEN }}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Deploy Netlify adapter output, not raw .next folder

This step now runs netlify-cli deploy --prod --dir=.next, which publishes the raw Next build directory as static content; it does not package the app’s server runtime for route handlers. This repo contains Next server endpoints (for example SwarmApp/src/app/api/auth/session/route.ts), so deploying only .next will leave API/SSR paths unavailable in production (404/500). Keep the Netlify build/adaptation path (or deploy generated .netlify artifacts) instead of uploading .next directly.

Useful? React with 👍 / 👎.


# ─── Hub jobs ──────────────────────────────────────────────────────────────────

Expand Down Expand Up @@ -189,9 +195,9 @@ jobs:
steps:
- name: All checks passed
run: |
echo "✓ SwarmApp: lint, typecheck, test, build"
echo "✓ SwarmApp: lint, test, build"
echo "✓ Hub: unit tests"
echo "✓ Contracts: compile + test"
echo "✓ Deploy: Netlify"
echo "SHA: ${{ github.sha }}"
echo "Ref: ${{ github.ref }}"
echo "This commit is release-safe for staging/testnet deployment."
Loading
Loading