Skip to content

Commit f02849e

Browse files
committed
fix: deploy docs production app
1 parent 372700a commit f02849e

10 files changed

Lines changed: 417 additions & 4 deletions

File tree

.github/workflows/production.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@ jobs:
4545
- name: Deploy Convex production
4646
run: bun --cwd packages/backend convex deploy
4747

48+
- name: Deploy docs production
49+
env:
50+
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_DOCS_PROJECT_ID }}
51+
run: |
52+
cd apps/fumadocs
53+
bunx vercel deploy --prod --yes --token "$VERCEL_TOKEN" --scope opencoredev
54+
4855
- name: Build web
4956
run: bun scripts/vercel-preview-build.ts
5057

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"$id": "https://docs.amend.sh/schemas/agent-ready-completion-audit-report.schema.json",
4+
"title": "Amend Agent-Ready Completion Audit Report",
5+
"type": "object",
6+
"additionalProperties": false,
7+
"required": [
8+
"$schema",
9+
"allowProductionBlockers",
10+
"checkedAt",
11+
"checks",
12+
"completionOk",
13+
"missingOrBlocked",
14+
"ok",
15+
"productionBlockersOnly",
16+
"productionReportPath",
17+
"summary"
18+
],
19+
"properties": {
20+
"$schema": {
21+
"type": "string",
22+
"const": "https://docs.amend.sh/schemas/agent-ready-completion-audit-report.schema.json"
23+
},
24+
"allowProductionBlockers": { "type": "boolean" },
25+
"checkedAt": { "type": "string", "format": "date-time" },
26+
"checks": {
27+
"type": "array",
28+
"items": { "$ref": "#/$defs/check" }
29+
},
30+
"completionOk": { "type": "boolean" },
31+
"missingOrBlocked": {
32+
"type": "array",
33+
"items": { "$ref": "#/$defs/check" }
34+
},
35+
"ok": { "type": "boolean" },
36+
"productionBlockersOnly": { "type": "boolean" },
37+
"productionReportPath": { "type": "string", "minLength": 1 },
38+
"summary": { "$ref": "#/$defs/summary" }
39+
},
40+
"$defs": {
41+
"check": {
42+
"type": "object",
43+
"additionalProperties": false,
44+
"required": ["name", "ok"],
45+
"properties": {
46+
"detail": { "type": "string" },
47+
"name": { "type": "string", "minLength": 1 },
48+
"ok": { "type": "boolean" }
49+
}
50+
},
51+
"summary": {
52+
"type": "object",
53+
"additionalProperties": false,
54+
"required": ["failed", "passed", "total"],
55+
"properties": {
56+
"failed": { "type": "integer", "minimum": 0 },
57+
"passed": { "type": "integer", "minimum": 0 },
58+
"total": { "type": "integer", "minimum": 0 }
59+
}
60+
}
61+
}
62+
}
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"$id": "https://docs.amend.sh/schemas/agent-ready-live-report.schema.json",
4+
"title": "Amend Agent-Ready Live Report",
5+
"type": "object",
6+
"additionalProperties": false,
7+
"required": ["$schema", "blockers", "checkedAt", "checks", "ok", "origins", "passed", "total"],
8+
"properties": {
9+
"$schema": {
10+
"type": "string",
11+
"const": "https://docs.amend.sh/schemas/agent-ready-live-report.schema.json"
12+
},
13+
"blockers": {
14+
"type": "array",
15+
"items": { "type": "string", "minLength": 1 }
16+
},
17+
"checkedAt": { "type": "string", "format": "date-time" },
18+
"checks": {
19+
"type": "array",
20+
"items": { "$ref": "#/$defs/check" }
21+
},
22+
"ok": { "type": "boolean" },
23+
"origins": {
24+
"type": "object",
25+
"additionalProperties": false,
26+
"required": ["docs", "web"],
27+
"properties": {
28+
"docs": { "type": "string", "format": "uri" },
29+
"web": { "type": "string", "format": "uri" }
30+
}
31+
},
32+
"passed": { "type": "integer", "minimum": 0 },
33+
"total": { "type": "integer", "minimum": 0 }
34+
},
35+
"$defs": {
36+
"check": {
37+
"type": "object",
38+
"additionalProperties": false,
39+
"required": ["name", "ok"],
40+
"properties": {
41+
"detail": { "type": "string" },
42+
"name": { "type": "string", "minLength": 1 },
43+
"ok": { "type": "boolean" }
44+
}
45+
}
46+
}
47+
}
Lines changed: 205 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,205 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"$id": "https://docs.amend.sh/schemas/agent-ready-production-report.schema.json",
4+
"title": "Amend Agent-Ready Production Report",
5+
"type": "object",
6+
"additionalProperties": false,
7+
"required": ["$schema", "blockers", "checkedAt", "ok", "steps"],
8+
"properties": {
9+
"$schema": {
10+
"type": "string",
11+
"const": "https://docs.amend.sh/schemas/agent-ready-production-report.schema.json"
12+
},
13+
"blockers": {
14+
"type": "array",
15+
"items": { "type": "string", "minLength": 1 }
16+
},
17+
"checkedAt": {
18+
"type": "string",
19+
"format": "date-time"
20+
},
21+
"ok": {
22+
"type": "boolean"
23+
},
24+
"steps": {
25+
"type": "object",
26+
"additionalProperties": false,
27+
"required": ["built", "live", "readinessStrict", "status"],
28+
"properties": {
29+
"built": { "$ref": "#/$defs/summaryStep" },
30+
"live": { "$ref": "#/$defs/liveStep" },
31+
"readinessStrict": { "$ref": "#/$defs/summaryStep" },
32+
"status": { "$ref": "#/$defs/statusStep" }
33+
}
34+
}
35+
},
36+
"$defs": {
37+
"check": {
38+
"type": "object",
39+
"additionalProperties": false,
40+
"required": ["name", "ok"],
41+
"properties": {
42+
"detail": { "type": "string" },
43+
"name": { "type": "string", "minLength": 1 },
44+
"ok": { "type": "boolean" }
45+
}
46+
},
47+
"dnsHost": {
48+
"type": "object",
49+
"additionalProperties": false,
50+
"required": ["delegated", "host", "records", "registered"],
51+
"properties": {
52+
"delegated": { "type": "boolean" },
53+
"host": { "type": "string", "minLength": 1 },
54+
"records": {
55+
"type": "array",
56+
"items": { "type": "string" }
57+
},
58+
"registered": { "type": "boolean" }
59+
}
60+
},
61+
"liveReport": {
62+
"type": "object",
63+
"additionalProperties": false,
64+
"required": [
65+
"$schema",
66+
"blockers",
67+
"checkedAt",
68+
"checks",
69+
"ok",
70+
"origins",
71+
"passed",
72+
"total"
73+
],
74+
"properties": {
75+
"$schema": {
76+
"type": "string",
77+
"const": "https://docs.amend.sh/schemas/agent-ready-live-report.schema.json"
78+
},
79+
"blockers": {
80+
"type": "array",
81+
"items": { "type": "string", "minLength": 1 }
82+
},
83+
"checkedAt": { "type": "string", "format": "date-time" },
84+
"checks": {
85+
"type": "array",
86+
"items": { "$ref": "#/$defs/check" }
87+
},
88+
"ok": { "type": "boolean" },
89+
"origins": { "$ref": "#/$defs/origins" },
90+
"passed": { "type": "integer", "minimum": 0 },
91+
"total": { "type": "integer", "minimum": 0 }
92+
}
93+
},
94+
"origins": {
95+
"type": "object",
96+
"additionalProperties": false,
97+
"required": ["docs", "web"],
98+
"properties": {
99+
"docs": { "type": "string", "format": "uri" },
100+
"web": { "type": "string", "format": "uri" }
101+
}
102+
},
103+
"productionEnv": {
104+
"type": "object",
105+
"additionalProperties": false,
106+
"required": ["missing", "passed", "total"],
107+
"properties": {
108+
"missing": {
109+
"type": "array",
110+
"items": { "type": "string", "minLength": 1 }
111+
},
112+
"passed": { "type": "integer", "minimum": 0 },
113+
"total": { "type": "integer", "minimum": 0 }
114+
}
115+
},
116+
"statusReport": {
117+
"type": "object",
118+
"additionalProperties": false,
119+
"required": [
120+
"$schema",
121+
"blockers",
122+
"checkedAt",
123+
"dns",
124+
"nextGates",
125+
"ok",
126+
"origins",
127+
"productionEnv"
128+
],
129+
"properties": {
130+
"$schema": {
131+
"type": "string",
132+
"const": "https://docs.amend.sh/schemas/agent-ready-status-report.schema.json"
133+
},
134+
"blockers": {
135+
"type": "array",
136+
"items": { "type": "string", "minLength": 1 }
137+
},
138+
"checkedAt": { "type": "string", "format": "date-time" },
139+
"dns": {
140+
"type": "object",
141+
"additionalProperties": false,
142+
"required": ["docs", "web"],
143+
"properties": {
144+
"docs": { "$ref": "#/$defs/dnsHost" },
145+
"web": { "$ref": "#/$defs/dnsHost" }
146+
}
147+
},
148+
"nextGates": {
149+
"type": "array",
150+
"minItems": 2,
151+
"maxItems": 2,
152+
"prefixItems": [
153+
{ "type": "string", "const": "bun run agent-ready:production" },
154+
{ "type": "string", "const": "bun run agent-ready:final-gate" }
155+
],
156+
"items": false
157+
},
158+
"ok": { "type": "boolean" },
159+
"origins": { "$ref": "#/$defs/origins" },
160+
"productionEnv": { "$ref": "#/$defs/productionEnv" }
161+
}
162+
},
163+
"summary": {
164+
"type": "object",
165+
"additionalProperties": false,
166+
"required": ["passed", "total"],
167+
"properties": {
168+
"passed": { "type": "integer", "minimum": 0 },
169+
"total": { "type": "integer", "minimum": 0 }
170+
}
171+
},
172+
"summaryStep": {
173+
"type": "object",
174+
"additionalProperties": false,
175+
"required": ["exitCode", "ok"],
176+
"properties": {
177+
"exitCode": { "type": "integer", "minimum": 0 },
178+
"ok": { "type": "boolean" },
179+
"summary": { "$ref": "#/$defs/summary" }
180+
}
181+
},
182+
"liveStep": {
183+
"type": "object",
184+
"additionalProperties": false,
185+
"required": ["exitCode", "ok", "report"],
186+
"properties": {
187+
"exitCode": { "type": "integer", "minimum": 0 },
188+
"ok": { "type": "boolean" },
189+
"report": { "$ref": "#/$defs/liveReport" },
190+
"summary": { "$ref": "#/$defs/summary" }
191+
}
192+
},
193+
"statusStep": {
194+
"type": "object",
195+
"additionalProperties": false,
196+
"required": ["exitCode", "ok", "report"],
197+
"properties": {
198+
"exitCode": { "type": "integer", "minimum": 0 },
199+
"ok": { "type": "boolean" },
200+
"report": { "$ref": "#/$defs/statusReport" },
201+
"summary": { "$ref": "#/$defs/summary" }
202+
}
203+
}
204+
}
205+
}

0 commit comments

Comments
 (0)