|
1 | | -name: Lucid Override Trigger |
| 1 | +name: 🌌 Dream-Mind-Lucid CI/CD |
| 2 | + |
2 | 3 | on: |
| 4 | + push: |
| 5 | + branches: [main] |
3 | 6 | 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 | + |
8 | 14 | jobs: |
9 | | - override: |
| 15 | + deploy: |
10 | 16 | runs-on: ubuntu-latest |
11 | 17 | 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.) |
15 | 28 | 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