Skip to content
Closed
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
25 changes: 25 additions & 0 deletions .github/workflows/vercel_preview.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Vercel Preview Deployment
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
on:
push:
branches-ignore:
- main
jobs:
Deploy-Preview:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Vercel CLI
run: npm install --global vercel@latest
- name: Pull Vercel Environment Information
working-directory: ecomm-demo
run: vercel pull --yes --environment=preview --token="$VERCEL_TOKEN"
- name: Build Project Artifacts
working-directory: ecomm-demo
run: vercel build --token="$VERCEL_TOKEN"
- name: Deploy Project Artifacts to Vercel
working-directory: ecomm-demo
run: vercel deploy --prebuilt --token="$VERCEL_TOKEN"
Loading