@@ -48,21 +48,33 @@ jobs:
4848 uses : actions/checkout@v3
4949 with :
5050 fetch-depth : 1
51- - name : Setup Tools
52- uses : ./.github/actions/setup
53- - name : Deploy to Vercel (${{ matrix.locale }})
54- id : deploy
55- uses : ./.github/actions/vercel-deploy
51+ - uses : ./.github/actions/setup
52+ - uses : ./.github/actions/vercel-pull
5653 with :
5754 environment : production
5855 prodFlag : --prod
5956 vercel_project_id : ${{ secrets[matrix.secret_project_id] }}
6057 vercel_org_id : ${{ secrets.VERCEL_ORG_ID }}
6158 vercel_token : ${{ secrets.VERCEL_TOKEN }}
62- - name : Copy .vercel/.env.production.local
63- shell : bash
59+ - name : Test
6460 run : |
65- cp .vercel/.env.production.local apps/docs/.env
61+ echo "Running tests for ${{ matrix.locale }}"
62+ pnpm --filter @next-i18n/docs test:e2e
63+ - uses : ./.github/actions/vercel-build
64+ with :
65+ environment : production
66+ prodFlag : --prod
67+ vercel_project_id : ${{ secrets[matrix.secret_project_id] }}
68+ vercel_org_id : ${{ secrets.VERCEL_ORG_ID }}
69+ vercel_token : ${{ secrets.VERCEL_TOKEN }}
70+ - id : deploy
71+ uses : ./.github/actions/vercel-deploy
72+ with :
73+ environment : production
74+ prodFlag : --prod
75+ vercel_project_id : ${{ secrets[matrix.secret_project_id] }}
76+ vercel_org_id : ${{ secrets.VERCEL_ORG_ID }}
77+ vercel_token : ${{ secrets.VERCEL_TOKEN }}
6678 - name : Update Search Index
6779 shell : bash
6880 run : pnpm run docs:update-search-index
0 commit comments