Skip to content

Commit e46f86c

Browse files
chore(docs): deploy to vercel
1 parent 4b2dc7b commit e46f86c

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

.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-design',
39+
'apollo-docs',
4040
'apollo-landing',
4141
'apollo-ui-react',
4242
'apollo-vertex'
@@ -96,6 +96,8 @@ jobs:
9696
include:
9797
- project_name: apollo-design
9898
vercel_project_id_secret: VERCEL_PROJECT_ID_CANVAS
99+
- project_name: apollo-docs
100+
vercel_project_id_secret: VERCEL_PROJECT_ID_DOCS
99101
- project_name: apollo-landing
100102
vercel_project_id_secret: VERCEL_PROJECT_ID_LANDING
101103
- project_name: apollo-ui-react
@@ -158,6 +160,9 @@ jobs:
158160
VERCEL_PROJECT_ID_CANVAS)
159161
echo "VERCEL_PROJECT_ID=${{ secrets.VERCEL_PROJECT_ID_CANVAS }}" >> $GITHUB_ENV
160162
;;
163+
VERCEL_PROJECT_ID_DOCS)
164+
echo "VERCEL_PROJECT_ID=${{ secrets.VERCEL_PROJECT_ID_DOCS }}" >> $GITHUB_ENV
165+
;;
161166
VERCEL_PROJECT_ID_LANDING)
162167
echo "VERCEL_PROJECT_ID=${{ secrets.VERCEL_PROJECT_ID_LANDING }}" >> $GITHUB_ENV
163168
;;

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)