Skip to content

Commit

Permalink
fixup! Adding preview with Vercel
Browse files Browse the repository at this point in the history
  • Loading branch information
lukdog committed May 7, 2024
1 parent 029793c commit 955e12f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/vercel-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,20 +63,18 @@ jobs:
- run: npm run build

- name: Install Vercel CLI
run: npm install --global vercel@canary env-cmd

run: npm install --global vercel@canary
- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}

- name: Build Project Artifacts
run: vercel build --token=${{ secrets.VERCEL_TOKEN }}

- uses: UnlyEd/github-action-deploy-on-vercel@latest
with:
command: "vercel deploy --cwd ./public --archive=tgz --prebuilt --debug --token ${{ secrets.VERCEL_TOKEN }}"
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID}}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID}}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}

- run: "echo \"Found deployment url: ${{ env.VERCEL_DEPLOYMENT_URL }}\""

0 comments on commit 955e12f

Please sign in to comment.