Skip to content

Commit f2ecab9

Browse files
chore(docs): deploy to vercel
1 parent b606a23 commit f2ecab9

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/workflows/vercel-deploy.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ name: Vercel Deployments
22

33
on:
44
pull_request:
5-
branches: [main]
65
push:
76
branches: [main]
87

@@ -37,6 +36,7 @@ jobs:
3736
3837
const projects = [
3938
'apollo-canvas',
39+
'apollo-docs',
4040
'apollo-landing',
4141
'apollo-ui-react',
4242
'apollo-vertex',
@@ -97,6 +97,8 @@ jobs:
9797
include:
9898
- project_name: apollo-canvas
9999
vercel_project_id_secret: VERCEL_PROJECT_ID_CANVAS
100+
- project_name: apollo-docs
101+
vercel_project_id_secret: VERCEL_PROJECT_ID_DOCS
100102
- project_name: apollo-landing
101103
vercel_project_id_secret: VERCEL_PROJECT_ID_LANDING
102104
- project_name: apollo-ui-react
@@ -161,6 +163,9 @@ jobs:
161163
VERCEL_PROJECT_ID_CANVAS)
162164
echo "VERCEL_PROJECT_ID=${{ secrets.VERCEL_PROJECT_ID_CANVAS }}" >> $GITHUB_ENV
163165
;;
166+
VERCEL_PROJECT_ID_DOCS)
167+
echo "VERCEL_PROJECT_ID=${{ secrets.VERCEL_PROJECT_ID_DOCS }}" >> $GITHUB_ENV
168+
;;
164169
VERCEL_PROJECT_ID_LANDING)
165170
echo "VERCEL_PROJECT_ID=${{ secrets.VERCEL_PROJECT_ID_LANDING }}" >> $GITHUB_ENV
166171
;;

apps/apollo-docs/vercel.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"buildCommand": "cd ../.. && pnpm turbo build --filter=apollo-docs",
3+
"installCommand": "cd ../.. && pnpm install",
4+
"framework": "nextjs",
5+
"ignoreCommand": "git diff HEAD^ HEAD --quiet . && git diff HEAD^ HEAD --quiet ../../packages"
6+
}

0 commit comments

Comments
 (0)