|
1 | 1 | name: CI |
2 | | - |
3 | 2 | on: |
4 | | - push: |
5 | | - branches: [main] |
6 | | - pull_request: |
7 | | - branches: [main] |
8 | | - |
9 | | -jobs: |
10 | | - typecheck: |
11 | | - name: Type Check |
12 | | - runs-on: ubuntu-latest |
13 | | - steps: |
14 | | - - name: Checkout |
15 | | - uses: actions/checkout@v4 |
16 | | - |
17 | | - - name: Setup pnpm |
18 | | - uses: pnpm/action-setup@v4 |
19 | | - with: |
20 | | - version: 10 |
21 | | - |
22 | | - - name: Setup Node.js |
23 | | - uses: actions/setup-node@v4 |
24 | | - with: |
25 | | - node-version: 22 |
26 | | - |
27 | | - - name: Install dependencies |
28 | | - run: pnpm install --no-frozen-lockfile --shamefully-hoist |
29 | | - |
30 | | - - name: Build packages (required for project references) |
31 | | - run: | |
32 | | - pnpm --filter @workspace/db exec tsc --build . |
33 | | - pnpm --filter @workspace/api-zod exec tsc --build . |
34 | | - pnpm --filter @workspace/api-client-react exec tsc --build . |
35 | | - pnpm --filter @workspace/integrations-openai-ai-server exec tsc --build . |
36 | | -
|
37 | | - - name: Type check all packages |
38 | | - run: pnpm -r --if-present run typecheck |
39 | | - |
40 | | - build-frontend: |
41 | | - name: Build Frontend |
42 | | - runs-on: ubuntu-latest |
43 | | - needs: typecheck |
44 | | - steps: |
45 | | - - name: Checkout |
46 | | - uses: actions/checkout@v4 |
47 | | - |
48 | | - - name: Setup pnpm |
49 | | - uses: pnpm/action-setup@v4 |
50 | | - with: |
51 | | - version: 10 |
52 | | - |
53 | | - - name: Setup Node.js |
54 | | - uses: actions/setup-node@v4 |
55 | | - with: |
56 | | - node-version: 22 |
57 | | - |
58 | | - - name: Install dependencies |
59 | | - run: pnpm install --no-frozen-lockfile --shamefully-hoist |
60 | | - |
61 | | - - name: Build packages |
62 | | - run: | |
63 | | - pnpm --filter @workspace/db exec tsc --build . |
64 | | - pnpm --filter @workspace/api-zod exec tsc --build . |
65 | | - pnpm --filter @workspace/api-client-react exec tsc --build . |
66 | | -
|
67 | | - - name: Build frontend |
68 | | - run: pnpm --filter @workspace/subframe exec vite build |
69 | | - env: |
70 | | - NODE_ENV: production |
71 | | - PORT: "3001" |
72 | | - BASE_PATH: / |
73 | | - VITE_API_BASE_URL: https://subframedev.replit.app |
74 | | - |
75 | | - deploy-pages: |
76 | | - name: Deploy to GitHub Pages |
77 | | - runs-on: ubuntu-latest |
78 | | - needs: typecheck |
79 | | - if: github.ref == 'refs/heads/main' && github.event_name == 'push' |
80 | | - permissions: |
81 | | - contents: read |
82 | | - pages: write |
83 | | - id-token: write |
84 | | - concurrency: |
85 | | - group: pages |
86 | | - cancel-in-progress: true |
87 | | - environment: |
88 | | - name: github-pages |
89 | | - url: ${{ steps.deployment.outputs.page_url }} |
90 | | - steps: |
91 | | - - name: Checkout |
92 | | - uses: actions/checkout@v4 |
93 | | - |
94 | | - - name: Setup pnpm |
95 | | - uses: pnpm/action-setup@v4 |
96 | | - with: |
97 | | - version: 10 |
98 | | - |
99 | | - - name: Setup Node.js |
100 | | - uses: actions/setup-node@v4 |
101 | | - with: |
102 | | - node-version: 22 |
103 | | - |
104 | | - - name: Install dependencies |
105 | | - run: pnpm install --no-frozen-lockfile --shamefully-hoist |
106 | | - |
107 | | - - name: Build packages |
108 | | - run: | |
109 | | - pnpm --filter @workspace/db exec tsc --build . |
110 | | - pnpm --filter @workspace/api-zod exec tsc --build . |
111 | | - pnpm --filter @workspace/api-client-react exec tsc --build . |
112 | | -
|
113 | | - - name: Build frontend |
114 | | - run: pnpm --filter @workspace/subframe exec vite build |
115 | | - env: |
116 | | - NODE_ENV: production |
117 | | - PORT: "3001" |
118 | | - BASE_PATH: / |
119 | | - VITE_API_BASE_URL: https://subframedev.replit.app |
120 | | - |
121 | | - - name: Create 404.html for SPA routing |
122 | | - run: cp frontend/dist/public/index.html frontend/dist/public/404.html |
123 | | - |
124 | | - - name: Setup Pages |
125 | | - uses: actions/configure-pages@v5 |
126 | | - |
127 | | - - name: Upload artifact |
128 | | - uses: actions/upload-pages-artifact@v3 |
129 | | - with: |
130 | | - path: frontend/dist/public |
131 | | - |
132 | | - - name: Deploy to GitHub Pages |
133 | | - id: deployment |
134 | | - uses: actions/deploy-pages@v4 |
135 | | - |
136 | | - deploy-ipfs-ens: |
137 | | - name: Pin to IPFS & Update ENS |
138 | | - runs-on: ubuntu-latest |
139 | | - needs: typecheck |
140 | | - if: github.ref == 'refs/heads/main' && github.event_name == 'push' |
141 | | - concurrency: |
142 | | - group: ipfs-ens |
143 | | - cancel-in-progress: true |
144 | | - steps: |
145 | | - - name: Checkout |
146 | | - uses: actions/checkout@v4 |
147 | | - |
148 | | - - name: Setup pnpm |
149 | | - uses: pnpm/action-setup@v4 |
150 | | - with: |
151 | | - version: 10 |
152 | | - |
153 | | - - name: Setup Node.js |
154 | | - uses: actions/setup-node@v4 |
155 | | - with: |
156 | | - node-version: 22 |
157 | | - |
158 | | - - name: Install dependencies |
159 | | - run: pnpm install --no-frozen-lockfile --shamefully-hoist |
160 | | - |
161 | | - - name: Build packages |
162 | | - run: | |
163 | | - pnpm --filter @workspace/db exec tsc --build . |
164 | | - pnpm --filter @workspace/api-zod exec tsc --build . |
165 | | - pnpm --filter @workspace/api-client-react exec tsc --build . |
166 | | -
|
167 | | - - name: Build frontend |
168 | | - run: pnpm --filter @workspace/subframe exec vite build |
169 | | - env: |
170 | | - NODE_ENV: production |
171 | | - PORT: "3001" |
172 | | - BASE_PATH: / |
173 | | - VITE_API_BASE_URL: https://subframedev.replit.app |
174 | | - |
175 | | - - name: Pin to IPFS & update ENS contenthash |
176 | | - run: node frontend/scripts/pin-to-ipfs.mjs |
177 | | - env: |
178 | | - PINATA_JWT: ${{ secrets.PINATA_JWT }} |
179 | | - ADMIN_SECRET: ${{ secrets.ADMIN_SECRET }} |
180 | | - API_URL: https://subframedev.replit.app |
181 | | - |
182 | | - build-backend: |
183 | | - name: Build Backend |
184 | | - runs-on: ubuntu-latest |
185 | | - needs: typecheck |
186 | | - steps: |
187 | | - - name: Checkout |
188 | | - uses: actions/checkout@v4 |
189 | | - |
190 | | - - name: Setup pnpm |
191 | | - uses: pnpm/action-setup@v4 |
192 | | - with: |
193 | | - version: 10 |
194 | | - |
195 | | - - name: Setup Node.js |
196 | | - uses: actions/setup-node@v4 |
197 | | - with: |
198 | | - node-version: 22 |
199 | | - |
200 | | - - name: Install dependencies |
201 | | - run: pnpm install --no-frozen-lockfile --shamefully-hoist |
202 | | - |
203 | | - - name: Build packages |
204 | | - run: | |
205 | | - pnpm --filter @workspace/db exec tsc --build . |
206 | | - pnpm --filter @workspace/api-zod exec tsc --build . |
207 | | -
|
208 | | - - name: Build backend |
209 | | - run: pnpm --filter @workspace/api-server run build |
| 3 | + workflow_dispatch: |
| 4 | +# Deployment handled directly via Replit at subframe.network |
| 5 | +jobs: {} |
0 commit comments