Skip to content

Commit dc26676

Browse files
committed
fixup! Adding preview with Vercel
1 parent 86a56b8 commit dc26676

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/vercel-preview.yml

+9
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,15 @@ jobs:
5959
- run: npm install
6060
- run: npm run build
6161

62+
- name: Install Vercel CLI
63+
run: npm install --global vercel@canary env-cmd
64+
65+
- name: Pull Vercel Environment Information
66+
run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
67+
68+
- name: Build Project Artifacts
69+
run: vercel build --token=${{ secrets.VERCEL_TOKEN }}
70+
6271
- uses: UnlyEd/github-action-deploy-on-vercel@latest
6372
with:
6473
command: "vercel deploy --cwd ./public --archive=tgz --prebuilt --debug --token ${{ secrets.VERCEL_TOKEN }}"

0 commit comments

Comments
 (0)