Skip to content

Commit 86a56b8

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

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/vercel-preview.yml

+8-7
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,12 @@ jobs:
5959
- run: npm install
6060
- run: npm run build
6161

62-
- name: Deploy to Vercel
63-
uses: amondnet/vercel-action@v25
62+
- uses: UnlyEd/github-action-deploy-on-vercel@latest
6463
with:
65-
vercel-token: ${{ secrets.VERCEL_TOKEN }}
66-
vercel-org-id: ${{ secrets.VERCEL_ORG_ID}}
67-
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID}}
68-
vercel-args: '--archive=tgz'
69-
working-directory: ./public
64+
command: "vercel deploy --cwd ./public --archive=tgz --prebuilt --debug --token ${{ secrets.VERCEL_TOKEN }}"
65+
env:
66+
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
67+
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID}}
68+
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID}}
69+
70+
- run: "echo \"Found deployment url: ${{ env.VERCEL_DEPLOYMENT_URL }}\""

0 commit comments

Comments
 (0)