Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1005,6 +1005,14 @@ jobs:
- name: Deploy immutable Website preview
if: steps.freshness.outputs.stale != 'true' && steps.affected.outputs.website == 'true'
id: deploy_website
env:
# Server pages read the growth form policy while rendering, so this
# build needs it exactly as the `website` job does. It cannot come
# from `vercel pull`: the project marks GROWTH_FORM_POLICY sensitive
# for preview/production, and Vercel never returns a sensitive value,
# so the pulled .env omits it and `vercel build` throws
# "GROWTH_FORM_POLICY must be growth_v1". It is not a secret.
GROWTH_FORM_POLICY: growth_v1
run: |
npx vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
url=$(npx vercel deploy --prebuilt --archive=tgz --prod --skip-domain --yes --token=${{ secrets.VERCEL_TOKEN }} | tail -n 1)
Expand Down
Loading