Skip to content

Commit aed7c20

Browse files
Update lucid-override.yml
Signed-off-by: Imfromfuture3000 <imfromfuture3000@gmail.com>
1 parent 374cd88 commit aed7c20

File tree

1 file changed

+63
-11
lines changed

1 file changed

+63
-11
lines changed
Lines changed: 63 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,69 @@
1-
name: Lucid Override Trigger
1+
name: 🌌 Dream-Mind-Lucid CI/CD
2+
23
on:
4+
push:
5+
branches: [main]
36
workflow_dispatch:
4-
inputs:
5-
symbol:
6-
description: 'Lucid symbol to activate'
7-
required: true
7+
8+
env:
9+
INFURA_PROJECT_ID: ${{ secrets.INFURA_PROJECT_ID }}
10+
BICONOMY_API_KEY: ${{ secrets.BICONOMY_API_KEY }}
11+
DEPLOYER_KEY: ${{ secrets.DEPLOYER_KEY }}
12+
FORWARDER_ADDRESS: ${{ secrets.FORWARDER_ADDRESS }}
13+
814
jobs:
9-
override:
15+
deploy:
1016
runs-on: ubuntu-latest
1117
steps:
12-
- name: Checkout
13-
uses: actions/checkout@v3
14-
- name: Run Lucid Agent
18+
- name: 🚀 Checkout repo
19+
uses: actions/checkout@v4
20+
21+
- name: 🐍 Set up Python
22+
uses: actions/setup-python@v5
23+
with:
24+
python-version: '3.11'
25+
cache: 'pip'
26+
27+
- name: 🧩 Install dependencies (web3, biconomy, solcx, etc.)
1528
run: |
16-
npm install
17-
node agents/copilot-lucid-agent.js ${{ github.event.inputs.symbol }}
29+
python -m pip install --upgrade pip
30+
pip install web3 biconomy-sdk modelcontextprotocol ipfshttpclient py-solc-x
31+
32+
- name: ☁️ MCP server & VSCode config
33+
run: |
34+
python grok_copilot_launcher.py &
35+
mkdir -p .vscode
36+
echo '{"mcp_server":"http://localhost:5000"}' > .vscode/mcp.json
37+
38+
- name: 🔑 Check secrets
39+
run: |
40+
test -n "${INFURA_PROJECT_ID}" || (echo "Missing INFURA_PROJECT_ID" && exit 1)
41+
test -n "${BICONOMY_API_KEY}" || (echo "Missing BICONOMY_API_KEY" && exit 1)
42+
test -n "${DEPLOYER_KEY}" || (echo "Missing DEPLOYER_KEY" && exit 1)
43+
test -n "${FORWARDER_ADDRESS}" || (echo "Missing FORWARDER_ADDRESS" && exit 1)
44+
45+
- name: 🛠️ Deploy IEMDreams and OneiroSphere contracts
46+
run: |
47+
python scripts/deploy.py --contracts IEMDreams.sol OneiroSphere.sol \
48+
--infura $INFURA_PROJECT_ID --biconomy $BICONOMY_API_KEY \
49+
--deployer $DEPLOYER_KEY --forwarder $FORWARDER_ADDRESS
50+
51+
- name: 🌙 Record a test dream
52+
run: |
53+
python scripts/record_dream.py --dream "Test dream: lucid, mining, cognitive staking!" \
54+
--infura $INFURA_PROJECT_ID --biconomy $BICONOMY_API_KEY \
55+
--deployer $DEPLOYER_KEY
56+
57+
- name: 📦 Upload deployment artifacts
58+
uses: actions/upload-artifact@v4
59+
with:
60+
name: deployment-results
61+
path: |
62+
iem_memory.json
63+
deployment_outputs/*
64+
logs/*
65+
if-no-files-found: ignore
66+
67+
# Optionally, add test and funding jobs here!
68+
69+
# 🪙 Consider adding a .github/FUNDING.yml with your sponsor/token presale links, hero!

0 commit comments

Comments
 (0)